Skip to content
Docs

Workspace API keys. Keys are stored hashed; the secret is shown once.

Base URLhttps://api.socialit.com/v1AuthenticationErrorsRate limits7 endpointsMCP toolset api_keys

Verify the current credential

GET/auth/verify

Returns the workspace, permission and scopes of the API key or OAuth token used.

Access: readZernio: GET /v1/auth/verify

Try it with MCPAsk your agent to call verify-credential (toolset api_keys)Set up MCP

Returns object

objectstring

credential

typestring

api_keyoauthsession

workspaceobject
Show 2 child attributes
idstring
namestring
permissionstring

fullread

scopesarray of string
api_key_idstring | null
client_idstring | null
user_idstring | null
profile_idsarray of string | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
GET/auth/verify
curl "https://api.socialit.com/v1/auth/verify" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "credential",
  "type": "api_key",
  "workspace": {
    "id": "string",
    "name": "string"
  },
  "permission": "full",
  "scopes": [
    "string"
  ],
  "api_key_id": "string",
  "client_id": "string",
  "user_id": "string",
  "profile_ids": [
    "string"
  ]
}

List API keys

GET/api-keys

Access: adminZernio: GET /v1/api-keys

Try it with MCPAsk your agent to call list-api-keys (toolset api_keys)Set up MCP

Query parameters

pageintegerdefault: 1

Page number

≥ 1

limitintegerdefault: 20

Items per page (max 100)

1–100

sortstring

created_atlast_used_atname

orderstring

ascdesc

matchstring

Combine filters with AND (default) or OR

allor

namestring

Returns object

objectstringrequired

list

dataarray of objectrequired
Show 10 item attributes
objectstring

api_key

idstring
namestring
permissionstring

fullread

profile_idsarray of string | null
prefixstring

Non-secret display prefix, e.g. sk_live_abcd

keystring

The secret. Only returned on create and regenerate; store it safely.

last_used_atstring (date-time) | null
expires_atstring (date-time) | null
created_atstring (date-time) | null
pageintegerrequired
limitintegerrequired
totalinteger | null
has_morebooleanrequired
next_page_urlstring | null
previous_page_urlstring | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
GET/api-keys
curl "https://api.socialit.com/v1/api-keys" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "list",
  "data": [
    {
      "object": "api_key",
      "id": "string",
      "name": "string",
      "permission": "full",
      "profile_ids": [
        "string"
      ],
      "prefix": "string",
      "key": "string",
      "last_used_at": "2026-10-13T09:00:00.000Z",
      "expires_at": "2026-10-13T09:00:00.000Z",
      "created_at": "2026-10-13T09:00:00.000Z"
    }
  ],
  "page": 1,
  "limit": 1,
  "total": 1,
  "has_more": true,
  "next_page_url": "https://example.com",
  "previous_page_url": "https://example.com"
}

Create an API key

POST/api-keys

The response contains the secret key. It is never shown again.

Access: adminIdempotency-KeyZernio: POST /v1/api-keys

Try it with MCPAsk your agent to call create-api-key (toolset api_keys)Set up MCP

Headers

Idempotency-Keystring

Unique key (for example a UUID) that makes retries safe: a repeated request with the same key and body returns the first response (Idempotent-Replayed: true) for 24 hours.

≤ 255 characters

Body object

namestringrequired

1–100 characters

permissionstringdefault: "full"

fullread

profile_idsarray of string | null

Restrict the key to these profiles (null = all)

≤ 500 items

expires_atstring (date-time) | null
expires_in_daysinteger

Alternative to expires_at

1–3650

Returns object

objectstring

api_key

idstring
namestring
permissionstring

fullread

profile_idsarray of string | null
prefixstring

Non-secret display prefix, e.g. sk_live_abcd

keystring

The secret. Only returned on create and regenerate; store it safely.

last_used_atstring (date-time) | null
expires_atstring (date-time) | null
created_atstring (date-time) | null

Responses

  • 201Created
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
POST/api-keys
curl -X POST "https://api.socialit.com/v1/api-keys" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "permission": "full",
    "profile_ids": [
      "string"
    ],
    "expires_at": "2026-10-13T09:00:00.000Z",
    "expires_in_days": 1
  }'
Response · 201
{
  "object": "api_key",
  "id": "string",
  "name": "string",
  "permission": "full",
  "profile_ids": [
    "string"
  ],
  "prefix": "string",
  "key": "string",
  "last_used_at": "2026-10-13T09:00:00.000Z",
  "expires_at": "2026-10-13T09:00:00.000Z",
  "created_at": "2026-10-13T09:00:00.000Z"
}

Get an API key

GET/api-keys/{id}

Access: admin

Try it with MCPAsk your agent to call get-api-key (toolset api_keys)Set up MCP

Path parameters

idstringrequired

apiKey id (key_…)

1–80 characters

Returns object

objectstring

api_key

idstring
namestring
permissionstring

fullread

profile_idsarray of string | null
prefixstring

Non-secret display prefix, e.g. sk_live_abcd

keystring

The secret. Only returned on create and regenerate; store it safely.

last_used_atstring (date-time) | null
expires_atstring (date-time) | null
created_atstring (date-time) | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
GET/api-keys/{id}
curl "https://api.socialit.com/v1/api-keys/key_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "api_key",
  "id": "string",
  "name": "string",
  "permission": "full",
  "profile_ids": [
    "string"
  ],
  "prefix": "string",
  "key": "string",
  "last_used_at": "2026-10-13T09:00:00.000Z",
  "expires_at": "2026-10-13T09:00:00.000Z",
  "created_at": "2026-10-13T09:00:00.000Z"
}

Update an API key

PATCH/api-keys/{id}

Access: admin

Try it with MCPAsk your agent to call update-api-key (toolset api_keys)Set up MCP

Path parameters

idstringrequired

apiKey id (key_…)

1–80 characters

Body object

namestring

1–100 characters

permissionstring

fullread

profile_idsarray of string | null

Restrict the key to these profiles (null = all)

≤ 500 items

expires_atstring (date-time) | null

Returns object

objectstring

api_key

idstring
namestring
permissionstring

fullread

profile_idsarray of string | null
prefixstring

Non-secret display prefix, e.g. sk_live_abcd

keystring

The secret. Only returned on create and regenerate; store it safely.

last_used_atstring (date-time) | null
expires_atstring (date-time) | null
created_atstring (date-time) | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
PATCH/api-keys/{id}
curl -X PATCH "https://api.socialit.com/v1/api-keys/key_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "permission": "full",
    "profile_ids": [
      "string"
    ],
    "expires_at": "2026-10-13T09:00:00.000Z"
  }'
Response · 200
{
  "object": "api_key",
  "id": "string",
  "name": "string",
  "permission": "full",
  "profile_ids": [
    "string"
  ],
  "prefix": "string",
  "key": "string",
  "last_used_at": "2026-10-13T09:00:00.000Z",
  "expires_at": "2026-10-13T09:00:00.000Z",
  "created_at": "2026-10-13T09:00:00.000Z"
}

Delete an API key

DELETE/api-keys/{id}

Revokes the key immediately.

Access: adminZernio: DELETE /v1/api-keys/{keyId}

Try it with MCPAsk your agent to call delete-api-key (toolset api_keys)Set up MCP

Path parameters

idstringrequired

apiKey id (key_…)

1–80 characters

Returns object

objectstringrequired

api_key

idstringrequired
deletedbooleanrequired

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
DELETE/api-keys/{id}
curl -X DELETE "https://api.socialit.com/v1/api-keys/key_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "api_key",
  "id": "string",
  "deleted": true
}

Regenerate an API key

POST/api-keys/{id}/regenerate

Issues a new secret for the same key; the old secret stops working.

Access: admin

Try it with MCPAsk your agent to call regenerate-api-key (toolset api_keys)Set up MCP

Path parameters

idstringrequired

apiKey id (key_…)

1–80 characters

Returns object

objectstring

api_key

idstring
namestring
permissionstring

fullread

profile_idsarray of string | null
prefixstring

Non-secret display prefix, e.g. sk_live_abcd

keystring

The secret. Only returned on create and regenerate; store it safely.

last_used_atstring (date-time) | null
expires_atstring (date-time) | null
created_atstring (date-time) | null

Responses

  • 200OK
  • 4XXErrors: invalid request, auth, permission, not found, conflict, plan or rate limit
  • 5XXErrors: server or upstream network error
POST/api-keys/{id}/regenerate
curl -X POST "https://api.socialit.com/v1/api-keys/key_2Jx0Fq5Pz8vYkB3mN6rT1wQ9sLd/regenerate" \
  -H "Authorization: Bearer $SOCIALIT_API_KEY"
Response · 200
{
  "object": "api_key",
  "id": "string",
  "name": "string",
  "permission": "full",
  "profile_ids": [
    "string"
  ],
  "prefix": "string",
  "key": "string",
  "last_used_at": "2026-10-13T09:00:00.000Z",
  "expires_at": "2026-10-13T09:00:00.000Z",
  "created_at": "2026-10-13T09:00:00.000Z"
}