Create Api Key
curl --request POST \
--url https://app.dograh.com/api/v1/user/api-keys \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": 123,
"name": "<string>",
"key_prefix": "<string>",
"api_key": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}API Keys
Create API Key
Create a new API key for programmatic access
POST
/
api
/
v1
/
user
/
api-keys
Create Api Key
curl --request POST \
--url https://app.dograh.com/api/v1/user/api-keys \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": 123,
"name": "<string>",
"key_prefix": "<string>",
"api_key": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://docs.dograh.com/llms.txt
Use this file to discover all available pages before exploring further.
The full key is only returned once at creation. Store it immediately in a secrets manager or environment variable โ it cannot be retrieved again.
Authentication
This endpoint requires a valid user session token. If you do not yet have an API key, obtain a session token by logging in first and pass it as aBearer token in the Authorization header.
Step 1 โ Log in to get a session token
curl -X POST https://your-dograh-instance/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "password": "your-password"}'
token field. Use it in the next step.
Step 2 โ Create an API key
curl -X POST https://your-dograh-instance/api/v1/user/api-keys \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"name": "my-api-key"}'
X-API-Key: <key> in place of Authorization: Bearer for all subsequent requests.โI