Create API Key
post
/v1/user/api-keysPart of User.
The raw key value is only returned once at creation time and cannot be retrieved again.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Request body
Required, application/json.
| Field | Type | Description |
|---|---|---|
namerequired | string | Name for the API key |
descriptionoptional | string | Optional description |
expires_atoptional | string | Optional expiration date in ISO format (e.g. 2024-12-31T23:59:59Z) |
graph_idoptional | string | Optional graph scope. A scoped key works only for this graph (and its subgraphs) and is the only kind of key accepted in an MCP connector URL. Omit for an account-wide key. |
Example request
curl
curl -X POST "https://api.robosystems.ai/v1/user/api-keys" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'Responses
201 Successful Response
| Field | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
api_keyrequired | APIKeyInfo | API key information APIKeyInfo fields
| ||||||||||||||||||||||||||||||
keyrequired | string | The actual API key (only shown once) |
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 403 | Access denied |
| 422 | Validation Error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |