cURL
curl --request POST \ --url https://api.devin.ai/v3beta1/enterprise/service-users/{service_user_id}/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "expires_at": 123 } '
{ "api_key_id": "<string>", "api_key_name": "<string>", "token": "<string>" }
ManageServiceUsers
Service User credential (prefix: cog_)
Service user ID (prefix: service-user-)
"service-user-abc123def456"
1 - 256
Optional expiration as a UNIX timestamp in seconds. Must be in the future if provided.
Successful Response
Shared response model for API key creation/rotation (includes one-time token).
The raw API token. This is only shown once at creation/rotation time.