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/{id}/rotate \
--header 'Authorization: Bearer <token>'{
"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"
}
}Rotates the API key secret and invalidates the previous secret. The new secret is shown exactly once in the response.
curl --request POST \
--url https://v1.api.altostrat.io/api/keys/{id}/rotate \
--header 'Authorization: Bearer <token>'{
"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.
The API key identifier.
^api_key_[0-9A-Za-z]{27}$"api_key_2m3h5n7k9j8g7f6e5d4c3b2a"
Was this page helpful?