Sociaro Docs
View Markdown

API keys

An API key authenticates requests and attributes usage to its organisation.

Create a key

Open Keys → Create key in the console. A name is optional. For example, a key named production can appear as Acme 3 · production. Use this display name in support requests.

Copy the secret when it appears and store it in a server-side secret manager. The console displays it once. If you lose it, create a replacement and revoke the old key.

Expiration

Choose Never (default), 30 days, 90 days or 1 year at creation. The expiry cannot be changed. The Keys tab shows the expiration time in UTC. Replace the key before that time to avoid authentication failures.

Authentication

Send the key in the Authorization header with the Bearer scheme:

curl https://api.sociaro.com/v1/models \
  -H "Authorization: Bearer $SOCIARO_API_KEY"

Use GET /v1/models for v1 discovery and GET /v2/models for Jobs API models.

Revoke a key

Select Revoke on the Keys tab to disable the key immediately. Select Delete afterwards to remove it from the list. Existing usage and charges remain visible in Spend and Logs, marked (deleted).

If a key is exposed, revoke it and replace it wherever it was configured.

Organisation scope

Every key in an organisation uses its shared balance. Use GET /v1/balance to read the remaining amount. Some features require activation for the organisation. See balance and billing.