Skip to content

Organizations

Organizations are the top-level structure in AutoRetouch. They contain workflows, executions, and billing is handled at the organization level. Users can be members of multiple organizations.

Get all organizations the authenticated user is a member of.

GET https://api.autoretouch.com/v1/organization
ParameterTypeDefaultDescription
limitinteger50Maximum results per page
offsetinteger0Number of results to skip
Terminal window
curl -X GET "https://api.autoretouch.com/v1/organization?limit=50&offset=0" \
-H "Authorization: Bearer {accessToken}"
{
"entries": [
{
"id": "9f5c2d7b-8b21-4a33-9e5f-4e1b7a01c9d4",
"name": "My Organization",
"version": "c8e4f632-2d45-4d13-99d0-a91b2334b80a",
"members": [
{
"id": "google-oauth2|105487236547812345678",
"givenName": "John",
"familyName": "Doe",
"email": "john.doe@example.com",
"picture": "https://example.com/profiles/john.jpg",
"roles": ["admin"]
},
{
"id": "auth0|64b2a91f3f2c490012345678",
"givenName": "Alice",
"familyName": "Smith",
"email": "alice.smith@example.com",
"picture": "https://example.com/profiles/alice.jpg",
"roles": ["operator"]
}
]
}
],
"total": 1
}
FieldTypeDescription
entriesarrayList of organizations
totalintegerTotal number of organizations
FieldTypeDescription
idstringOrganization ID (UUID)
namestringDisplay name
versionstringOrganization version ID
membersarrayList of organization members
FieldTypeDescription
idstringUser ID
givenNamestringFirst name
familyNamestringLast name
emailstringEmail address
picturestringProfile picture URL
rolesarrayUser roles (admin, operator)

Get details for a specific organization.

GET https://api.autoretouch.com/v1/organization/{organizationId}/
ParameterTypeDescription
organizationIdstringOrganization ID
Terminal window
curl -X GET "https://api.autoretouch.com/v1/organization/{organizationId}/" \
-H "Authorization: Bearer {accessToken}"
{
"id": "9f5c2d7b-8b21-4a33-9e5f-4e1b7a01c9d4",
"name": "My Organization",
"version": "c8e4f632-2d45-4d13-99d0-a91b2334b80a",
"members": [
{
"id": "google-oauth2|105487236547812345678",
"givenName": "John",
"familyName": "Doe",
"email": "john.doe@example.com",
"picture": "https://example.com/profiles/john.jpg",
"roles": ["admin"]
}
]
}

Get the current credit balance for an organization.

GET https://api.autoretouch.com/v1/organization/balance
ParameterTypeRequiredDescription
organizationstringYesOrganization ID
Terminal window
curl -X GET "https://api.autoretouch.com/v1/organization/balance?organization={organizationId}" \
-H "Authorization: Bearer {accessToken}"

Returns the credit balance as a plain integer:

6820
  • Each workflow execution costs a certain number of credits (see executionPrice in workflow details)
  • If the balance is insufficient, executions will have status PAYMENT_REQUIRED
  • Contact your AutoRetouch representative to add credits to your organization