v4

latestOpenAPI 3.1.02026-08-07341215300.9 KB

Create Api Key

Create a new Deeptrace API key for the authenticated user.

API keys are used to trigger and retrieve investigations via the REST API (POST /api/v1/investigate, GET /api/v1/investigations/{id}).

The API key is returned only once upon creation and cannot be retrieved later.

post/api/api-keys

Request body

namestring required

A descriptive name for this API key (e.g., 'My Cursor', 'Claude Desktop')

expires_in_daysinteger nullable

Number of days until the key expires. Null for no expiration.

Response

Successful Response

idstring required
namestring required
api_keystring required
key_prefixstring required
expires_atstring nullable required
created_atstring required