Get the account behind a key
curl --request GET \
--url https://my.flowsign.app/api/v1/account \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.flowsign.app/api/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.flowsign.app/api/v1/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://my.flowsign.app/api/v1/account");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"data": {
"organization": {
"id": "<string>",
"name": "<string>"
},
"workspace": {
"id": "<string>",
"name": "<string>"
},
"key": {
"id": "<string>",
"name": "<string>",
"role": "<string>"
},
"user": {
"id": "<string>",
"email": "<string>"
}
}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>",
"details": {}
}Account
Get the account behind a key
Returns the organisation and workspace the call acts in, the API key it was made with and the role that key acts as, and the user work is attributed to: the key’s issuer. Integrations use it to label a connection. key is null when the call is made with a signed-in session rather than a key.
GET
/
api
/
v1
/
account
Get the account behind a key
curl --request GET \
--url https://my.flowsign.app/api/v1/account \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.flowsign.app/api/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.flowsign.app/api/v1/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://my.flowsign.app/api/v1/account");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"data": {
"organization": {
"id": "<string>",
"name": "<string>"
},
"workspace": {
"id": "<string>",
"name": "<string>"
},
"key": {
"id": "<string>",
"name": "<string>",
"role": "<string>"
},
"user": {
"id": "<string>",
"email": "<string>"
}
}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>",
"details": {}
}{
"error": "<string>",
"details": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The workspace to act in, from GET /api/v1/workspaces. Omit to act in the organisation's default workspace. A workspace the key's user cannot act in is treated as omitted.
Response
Success
Show child attributes
Show child attributes
Was this page helpful?

