Skip to main content
POST
/
v1
/
keys
/
create
Create a new API key
curl --request POST \
  --url https://api.urltodata.ai/v1/keys/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scopes": [
    "account:read"
  ]
}
'
{
  "apiKey": "<string>",
  "key": {
    "keyId": "<string>",
    "name": "<string>",
    "scopes": [
      "account:read"
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.urltodata.ai/llms.txt

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

Authorizations

Authorization
string
header
default:your-api-key
required

API key as Bearer token (e.g. Bearer mp_abc123_secret)

Body

application/json
name
string

Custom key name

scopes
enum<string>[]

Optional API scopes for the new key. Omit for full access.

Minimum array length: 1
Available options:
account:read,
usage:read,
content:run,
jobs:read,
crawl:run,
keys:read,
keys:write,
credits:purchase

Response

API key created

apiKey
string
key
object