Create a personal credential
Changed onMints a credential that acts as you, for a CLI or an automation. The key value is returned exactly once, in the key field: capture it now, it is unreadable afterwards. Requires a personal credential (a project API key is refused) and admin on the project the credential defaults to. The new credential can never exceed the one that created it: not in scope, not in permissions, and not in lifetime. Omit a field to copy it from the calling credential.
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/me/api-keys
- AuthHTTP bearer
Request body
Example request
{
"name": "CI deploy gate",
"scopes": [
"READ"
],
"permissions": [
"call:read",
"metric:read"
],
"expiresAt": "2026-12-31T23:59:59.000Z"
}Response
The created credential, with its key value (returned only here)
Example response
{
"data": {
"id": "7c6d5e4f-3a2b-4109-8765-4f3e2d1c0b9a",
"name": "CI deploy gate",
"createdAt": "2026-10-05T09:30:00.000Z",
"lastUsedAt": null,
"expiresAt": null,
"status": "ACTIVE",
"organizationId": "9f8e7d6c-5b4a-4312-9081-7f6e5d4c3b2a",
"defaultProjectId": "1a2b3c4d-5e6f-4701-8293-a4b5c6d7e8f9",
"scopes": [
"READ"
],
"permissions": [
"call:read",
"metric:read"
],
"key": "roark0f1e2d3c4b5a69788796a5b4c3d2e1f09182"
}
}Changes
- breaking
the
response's property type changed from no type toobjectfor status - info
removed from the
response propertyallOflist for the response status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status - info
added the required property
/to the response with the status
- breaking
- info
endpoint added
- info