Skip to main content
POST
/
v1
/
api-keys
Create Key
curl --request POST \
  --url https://api.example.com/v1/api-keys \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "env": "test"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "prefix": "<string>",
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "last_used_at": "2023-11-07T05:31:56Z",
  "revoked_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "token": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.n8negri.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string | null

Body

application/json
name
string
required
Required string length: 2 - 120
scopes
string[]
env
string
default:test
Pattern: ^(test|live)$

Response

Successful Response

id
string<uuid>
required
org_id
string<uuid>
required
prefix
string
required
name
string
required
scopes
string[]
required
last_used_at
string<date-time> | null
required
revoked_at
string<date-time> | null
required
created_at
string<date-time>
required
token
string
required