Altostrat Studio is here — the AI-native network operations IDE for engineers running production. Terminal, diagrams, runbooks, and Copilot in one workspace. Get started →
curl --request POST \
--url https://v1.api.altostrat.io/api/keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Production automation",
"permissions": [
"sites:read",
"scripts:write"
]
}
'{
"status": "success",
"data": {
"message": "API Key created successfully. This is the only time the secret key will be shown.",
"key": {
"id": "api_key_2m3h5n7k9j8g7f6e5d4c3b2a",
"object": "api_key",
"name": "Production automation",
"key_prefix": "alto_sk_ab123",
"client_id": "C3HqXo4o6Yb5Kp0oV9x8",
"created_at": "2026-04-20T00:00:00Z",
"status": "active",
"permissions": [
"sites:read",
"scripts:write"
],
"last_used_at": null
},
"secret": "alto_sk_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV"
}
}Creates an API key with the selected permissions. The secret is shown exactly once in the response, so store it in a secret manager before you close the dialog or discard the response body.
curl --request POST \
--url https://v1.api.altostrat.io/api/keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Production automation",
"permissions": [
"sites:read",
"scripts:write"
]
}
'{
"status": "success",
"data": {
"message": "API Key created successfully. This is the only time the secret key will be shown.",
"key": {
"id": "api_key_2m3h5n7k9j8g7f6e5d4c3b2a",
"object": "api_key",
"name": "Production automation",
"key_prefix": "alto_sk_ab123",
"client_id": "C3HqXo4o6Yb5Kp0oV9x8",
"created_at": "2026-04-20T00:00:00Z",
"status": "active",
"permissions": [
"sites:read",
"scripts:write"
],
"last_used_at": null
},
"secret": "alto_sk_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUV"
}
}Documentation Index
Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authenticate with an SDX user access token that has permission to manage API keys.
Was this page helpful?