Skip to main content
POST
/
projects
/
me
/
api-keys
cURL
curl -X POST https://api.neuraldraft.io/v1/projects/me/api-keys \
  -H "Authorization: Bearer ndsk_live_yourkey" \
  -H "Content-Type: application/json" \
  -d '{"name":"CI builds","scopes":["content:read","blog:read"]}'
{
  "id": "key_2Ngc7HpQrZk1",
  "name": "CI builds",
  "prefix": "ndsk_live_",
  "masked": "ndsk_live_…aB91",
  "secret": "ndsk_live_a5oqV2uY3sR8mD7fK9hP4tWcXeZi6jLg7yQpaB91",
  "scopes": [
    "content:read",
    "blog:read"
  ],
  "last_used_at": null,
  "created_at": "2026-04-19T10:02:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

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

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Body

application/json
name
string
required
Example:

"CI builds"

scopes
string[]
required
Example:
["content:read", "blog:read"]

Response

The created key. The secret field is included only in this response — store it now.

id
string
required
Example:

"key_2NfQB5GdkY9P"

name
string
required
Example:

"Production server"

prefix
string
required
Example:

"ndsk_live_"

masked
string
required
Example:

"ndsk_live_…7yQp"

scopes
string[]
required
Example:
["content:read", "content:write"]
created_at
string<date-time>
required
secret
string
required

Full secret value. Returned only once at creation.

Example:

"ndsk_live_a5oqV2uY3sR8mD7fK9hP4tWcXeZi6jLg7yQpaB91"

last_used_at
string<date-time> | null