Api keys

Get current API key

GET
/api-keys/current

Returns the API key used to authenticate the request, including its scopes and the workspaces it can access.

Response Body

application/json

curl -X GET "https://example.com/api-keys/current"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "kind": "Workspace",  "displayPrefix": "string",  "displayName": "string",  "description": null,  "scopes": [    {      "value": "string",      "displayName": "string"    }  ],  "expiresOn": null,  "workspaces": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "createdAt": "2019-08-24T14:15:22Z",      "displayName": null,      "slug": "string",      "creatorSubjectId": "fbc2e7e5-8f7f-45e6-8e7b-6bff026e7561"    }  ]}