Retrieves the current account for the token accessing the API
GET/v1/account
Retrieves the current account for the token accessing the API. Useful to check if the credentials are valid.
Retrieves the current account for the token accessing the API
curl https://api.cadenya.com/v1/account \
-H "Authorization: Bearer $CADENYA_API_KEY"{
"info": {
"webhookEventsHmacSecret": "webhookEventsHmacSecret"
},
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"billingEmail": "billingEmail",
"description": "description",
"domain": "domain",
"workspaces": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"description": "description"
}
}
]
}
}Returns Examples
{
"info": {
"webhookEventsHmacSecret": "webhookEventsHmacSecret"
},
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"billingEmail": "billingEmail",
"description": "description",
"domain": "domain",
"workspaces": [
{
"metadata": {
"id": "id",
"accountId": "accountId",
"name": "name",
"profileId": "profileId",
"externalId": "externalId",
"labels": {
"foo": "string"
}
},
"spec": {
"description": "description"
}
}
]
}
}