Skip to content

Meta

Get API status

Get the calling credential’s type, identity, expiry, and API scopes, plus links to the OpenAPI document, API docs, and Sim MCP server. Requires a valid API key or OAuth access token. `v2Enabled` is true whenever this endpoint is served; the response does not enumerate resource permissions. OAuth scope: `api:read`.

GET/api/v2/meta

Get the calling credential’s type, identity, expiry, and API scopes, plus links to the OpenAPI document, API docs, and Sim MCP server. Requires a valid API key or OAuth access token. v2Enabled is true whenever this endpoint is served; the response does not enumerate resource permissions.

OAuth scope: api:read.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:read

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:read.

Responses

200

Identity, availability, and lifecycle facts about the calling credential.

object

API availability, credential type and identity, expiry, scopes, and discovery links for the caller.

1 field
dataobjectRequired

Response data.

8 fields
v2EnabledbooleanRequired

Whether this API version is available. This is true when the endpoint is served.

keyTypestringRequired

Calling credential kind: a personal API key acting for its owner, a key bound to one workspace, or an OAuth access token acting for its user within granted scopes. Resource permissions and credential policies still apply.

enum
["personal","workspace","oauth_access_token"]
expiresAtvalueRequired

ISO 8601 timestamp when the calling credential expires, or null when it does not.

Schema details

Any of

Option 1string
format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Option 2null
scopesarrayRequired

API scopes the calling credential can use. api:write implies api:read, and either implies search:read. A read-only API key holds api:read and search:read: it is refused every operation that changes state and every operation that declares no API scope, so api:read alone does not authorize those. A full-access key holds all three; an OAuth access token holds what it was granted and what that implies.

Schema details
Array itemstring
enum
["api:read","api:write","search:read"]
keyIdvalueRequired

ID of the calling API key, or null for an OAuth access token.

Schema details

Any of

Option 1string
Option 2null
userIdvalueRequired

ID of the user the credential acts for, or null for a workspace API key, which acts as its workspace rather than as a user.

Schema details

Any of

Option 1string
Option 2null
workspaceIdvalueRequired

The only workspace a workspace API key can reach, or null for personal API keys and OAuth access tokens, which reach every workspace their user can.

Schema details

Any of

Option 1string
Option 2null
linksobjectRequired

Where to find the API description, its documentation, and the Sim MCP server.

3 fields
openapistringRequired

URL of the OpenAPI document for this API.

docsstringRequired

URL of the API reference documentation.

mcpstringRequired

URL of the Sim MCP server.

Additional properties are not allowed.

Additional properties are not allowed.

Additional properties are not allowed.

Response example 1

json
{
  "data": {
    "v2Enabled": true,
    "keyType": "personal",
    "expiresAt": null,
    "scopes": [
      "api:read",
      "api:write",
      "search:read"
    ],
    "keyId": "key_7f3a9c2e",
    "userId": "user-123",
    "workspaceId": null,
    "links": {
      "openapi": "https://docs.sim.ai/openapi.json",
      "docs": "https://docs.sim.ai/api-reference/getting-started",
      "mcp": "https://mcp.sim.ai/mcp"
    }
  }
}

Response headers

X-RateLimit-Limitinteger

Maximum requests allowed in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Remaininginteger

Requests remaining in the current window.

minimum
0
maximum
9007199254740991
X-RateLimit-Resetstring

ISO 8601 timestamp when the current rate-limit window resets.

format
date-time
pattern
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Was this helpful?
Suggest an edit