Send your first managed request
Create a User API key and send one request through the managed AnchorShell Relay API.
Purpose
Create one user-owned API key. Use it to send a request through hosted AnchorShell Relay.
Prerequisites
You need access to an organization with Relay enabled. You also need permission to create your own User API key, one accessible Model or Group, and curl or another HTTP client.
Steps
- Sign in to AnchorShell.
- Open Account → API Keys.
- Create a key for Relay.
- Use a workload-specific name, such as
support-agent-production. - Keep the
relay:requestscope. - Copy the complete
as_live_secret. AnchorShell shows it once. - Store the secret in a secret manager or local environment variable.
- Open Relay → Providers or Relay → Groups.
- Copy one Model, Standard Group, or Smart Group call name that the key owner can use.
- Replace
YOUR_MODEL_OR_GROUPin the request.
curl https://api.anchorshell.com/v1/chat/completions \
-H 'Authorization: Bearer <API_KEY>' \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL_OR_GROUP",
"messages": [
{"role": "user", "content": "Return the word ready."}
]
}'Response — 200 OK
Example non-streaming response (selected fields). Content, model, and usage depend on the selected provider.
{
"id": "<COMPLETION_ID>",
"object": "chat.completion",
"model": "gpt-5-mini",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Relay waits for the preferred model before considering fallback."
},
"finish_reason": "stop"
}
]
}Expected result
The API returns a successful Chat Completions response. AnchorShell attributes the request to the User API key, its owner, and the organization.
Verification
Open Relay → Logs. Find the request under the User API-key identity. Confirm the selected Group, provider, Model, token use, timing, and final status.
Recovery
If authentication fails, confirm that the key is active and that you copied the complete secret. If routing fails, confirm that the Model is enabled, the key owner has provider access, and no applicable limit is exhausted. Create a replacement key if the secret is lost.