API Keys
Create service accounts and API keys for server-to-server integrations. 6 endpoints in this resource.
List service accounts
https://api.flownally.com/v1/service-accountsReturns the workspace's service accounts. Each API key belongs to one service account.
Open as its own pageAuthorization
- api_key:list
- owner
- admin
List service accounts.
Responses
- 200List of service accountsapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/service-accounts" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"serviceAccounts": [
{
"id": "sva_d7pilh9s682jt9mn3f3g",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"name": "Production CRM sync",
"description": "Keeps contacts, events, and messages in sync with the CRM.",
"isActive": true,
"createdAt": "2026-04-30T09:45:00Z",
"updatedAt": "2026-04-30T09:45:00Z"
}
]
}Create service account
https://api.flownally.com/v1/service-accountsCreates a service account for an integration. Create its API keys with POST /service-accounts/{id}/api-keys. Only Owners can create service accounts.
Authorization
- api_key:create
- owner
Create a service account.
Body parameters
Send a application/json body. The body is required.
- Name
name- Type
- string
- required
- Name
description- Type
- string
Responses
- 200Service account createdapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/service-accounts" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Production CRM sync",
"description": "Keeps contacts, events, and messages in sync with the CRM."
}'{
"id": "sva_d7pilh9s682jt9mn3f3g",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"name": "Production CRM sync",
"description": "Keeps contacts, events, and messages in sync with the CRM.",
"isActive": true,
"createdAt": "2026-04-30T09:45:00Z",
"updatedAt": "2026-04-30T09:45:00Z"
}Delete service account
https://api.flownally.com/v1/service-accounts/{id}Deletes a service account and revokes all of its API keys.
Open as its own pageAuthorization
- api_key:revoke
- owner
- admin
Delete a service account.
Parameters
- Name
id- Type
- path · string
- required
Service account ID.
Responses
- 204Service account deleted
- defaultErrorapplication/json
Related schemas
curl -X DELETE "https://api.flownally.com/v1/service-accounts/$SERVICE_ACCOUNT_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"List API keys for a service account
https://api.flownally.com/v1/service-accounts/{id}/api-keysReturns metadata for the service account's API keys. Plaintext keys are never returned.
Open as its own pageAuthorization
- api_key:list
- owner
- admin
List API keys.
Parameters
- Name
id- Type
- path · string
- required
Service account ID.
Responses
- 200List of API keysapplication/json
- defaultErrorapplication/json
Related schemas
curl "https://api.flownally.com/v1/service-accounts/$SERVICE_ACCOUNT_ID/api-keys" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"{
"apiKeys": [
{
"id": "apk_d7piqa1l2babdv94r440",
"name": "CRM production key",
"keyPrefix": "flw_8d2a",
"serviceAccountId": "sva_d7pilh9s682jt9mn3f3g",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"expiresAt": "9999-12-31T23:59:59Z",
"createdBy": "usr_d7phosq4g7mv2l5b9l40",
"createdAt": "2026-04-30T09:50:00Z",
"updatedAt": "2026-04-30T09:50:00Z"
}
]
}Create API key
https://api.flownally.com/v1/service-accounts/{id}/api-keysCreates an API key for the service account. Only Owners can create API keys, because a key has full access to the workspace. The plaintext key is in the response's key field and is shown only once, so store it in a secret manager right away.
Authorization
- api_key:create
- owner
Create an API key.
Parameters
- Name
id- Type
- path · string
- required
Service account ID.
Body parameters
Send a application/json body. The body is required.
- Name
name- Type
- string
- required
Responses
- 200API key createdapplication/json
- defaultErrorapplication/json
Related schemas
curl -X POST "https://api.flownally.com/v1/service-accounts/$SERVICE_ACCOUNT_ID/api-keys" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "CRM production key"
}'{
"apiKey": {
"id": "apk_d7piqa1l2babdv94r440",
"name": "CRM production key",
"keyPrefix": "flw_8d2a",
"serviceAccountId": "sva_d7pilh9s682jt9mn3f3g",
"tenantId": "tn_d7phk42ge9t9t6324f20",
"expiresAt": "9999-12-31T23:59:59Z",
"createdBy": "usr_d7phosq4g7mv2l5b9l40",
"createdAt": "2026-04-30T09:50:00Z",
"updatedAt": "2026-04-30T09:50:00Z"
},
"key": "flw_8d2aJ4kQ9mXe7Rv2LpT6sWc1NbH5yZu3GfD8oKiA0qEw"
}Revoke API key
https://api.flownally.com/v1/api-keys/{id}Revokes an API key. Requests that use it get 403 with code auth_apikey_revoked.
Authorization
- api_key:revoke
- owner
- admin
Revoke an API key.
Parameters
- Name
id- Type
- path · string
- required
API key ID.
Responses
- 204API key revoked
- defaultErrorapplication/json
Related schemas
curl -X DELETE "https://api.flownally.com/v1/api-keys/$API_KEY_ID" \
-H "Authorization: Bearer $FLOWNALLY_API_TOKEN"