Auth
The Auth operations of the Hub REST API (2 operations).
Generated from Synap-core/backend main at 24fabe7, which can be newer than the stable release self-hosters install.
bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
Bearer credential introspection.
application/json- response
keyId*stringuuidkeyIdPrefix*stringuserId*stringuserEmail*string|nulluserName*string|nullname*|Human-friendly key name.
scopes*array<string>createdAt*stringdate-timeexpiresAt*|date-timelastUsedAt*|date-timeparentKeyId*|uuidisActive*booleankeyType*string"hub_inbound""user_pat""system""service""is_internal"workspaceId*|uuidaccess*|nullcurl -X GET 'https://pod.example.com/api/hub/auth/status'{ "keyId": "468bcefd-6536-4844-8249-aff3ecb2ef7b", "keyIdPrefix": "string", "userId": "string", "userEmail": "string", "userName": "string", "name": "string", "scopes": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "parentKeyId": "9dbb5623-c5bd-4a01-b4c9-f9396064b6bc", "isActive": true, "keyType": "hub_inbound", "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c", "access": { "isFullAccess": true, "summary": "string", "scopes": [ { "permissions": [ "string" ], "workspaceIds": [ "string" ], "projectIds": [ "string" ], "entityIds": [ "string" ] } ], "clientId": "string" }}bearerAuthAuthorizationBearer <API key>Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.
The presented key's state.
application/json- response
state*string"active""awaiting_approval""revoked""expired""unknown"keyIdPrefix?stringkeyId?stringuuidagentType?string|nullinstanceId?string|nullinstanceLabel?|The computer's name this key was made on; null = unlabelled.
createdAt?stringdate-timeexpiresAt?|date-timeapprovalUrl?stringawaiting_approval: the page where the owner approves it.
revokedAt?|date-timerevokedReason?string|nullreplacedBy?|revoked by replacement: when the replacing connection was created, and on which instance.
curl -X GET 'https://pod.example.com/api/hub/auth/key-state'{ "state": "active", "keyIdPrefix": "string", "keyId": "468bcefd-6536-4844-8249-aff3ecb2ef7b", "agentType": "string", "instanceId": "string", "instanceLabel": "string", "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "approvalUrl": "string", "revokedAt": "2019-08-24T14:15:22Z", "revokedReason": "string", "replacedBy": { "createdAt": "2019-08-24T14:15:22Z", "instanceId": "string", "instanceLabel": "string" }}