cURL
curl --request POST \ --url https://app.tryordinal.com/api/v1/company/workspaces/{workspaceId}/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "keyHint": "<string>", "key": "<string>", "createdAt": "2023-11-07T05:31:56Z" }
Create an API key for a specific workspace. The key can be used to access workspace-specific endpoints.
Company API key (starts with ord_c_)
1
OK
Was this page helpful?