Migrating from Voicebox App Keys (v1) to User API Tokens (v2)
Voicebox apps and Voicebox app keys will soon be deprecated. The v2 public API authenticates only with user API tokens, and Voicebox app keys stop working on the v1 API at the cutoff below. This guide walks you through moving an integration from a Voicebox app key to a user API token.
Page Contents
Timeline
| Surface | What happens | When |
|---|---|---|
| Stardog Cloud | Voicebox app keys stop being accepted by /api/v1/voicebox/* | February 18, 2027 at 00:00 UTC. The last request that succeeds is at 23:59:59 UTC on February 17, 2027. |
| Launchpad | The Voicebox Apps capability is removed | In the next major Launchpad release (v5). Your administrator decides when your instance upgrades. |
Until the cutoff, existing app keys keep working exactly as they do today.
Already-issued keys don’t outlive the cutoff. A Voicebox app key stops working at the cutoff even if its own expiry date is later.
What’s changing
A Voicebox app key bundled two things together: who you are (the credential) and what to query (the connection, database, model, named graphs, and reasoning setting chosen when the app was created). In v2 these are separate:
- A user API token says who you are. It isn’t tied to any connection or database. It can reach every connection your user account can access.
- Each request says what to query. You send
connection_id,database,model,named_graphs, andreasoningin the request body. A follow-up in the same conversation keeps the connection and database but not the other three, so send those on every request.
| Voicebox app key | User API token | |
|---|---|---|
| Credential | Voicebox app key | User API token (starts with sdc_) |
| Where you create it | Voicebox Apps section of the Manage API Keys page | User API Tokens section of the same page |
| Query settings | Fixed when the app is created | Sent in each request body |
| Base path | /api/v1/voicebox/ | /api/v2/voicebox/ |
| Conversations tied to | The app (and the X-Client-Id user) | Your user account |
| Maximum expiry | — | 360 days |
The full v2 API reference lists every endpoint, field, and error. On Stardog Cloud, it’s at https://cloud.stardog.com/api/v2/docs. See API reference (Swagger) for the Launchpad URL and how to try requests.
Step 1: Create a user API token
- Sign in and open the Manage API Keys page.
- In User API Tokens, click New token.
- Enter a name that identifies the integration (for example,
ci-pipeline) and choose an expiry, up to 360 days. - Copy the token right away. It is shown only once and can’t be retrieved later.
Store the token the same way you stored your app key, in a secrets manager or environment variable and never in source control.
A user API token has the same access as your user account, not just one connection. If an integration should only reach specific data, run it under a user account that only has access to that data.
Step 2: Find your connection ID
Your Voicebox app was bound to a connection. In v2 you pass that connection’s ID on every request. Look it up with GET /api/v2/connections:
curl https://cloud.stardog.com/api/v2/connections \
-H "Authorization: Bearer $STARDOG_API_TOKEN"
{
"connections": [
{
"id": "3f2c1a9e-5b7d-4e8a-9c21-0d6f4a1b2c3d",
"name": "Production",
"endpoint": "https://sd-abc123.stardog.cloud:5820",
"auth": "stored",
"workspace": { "type": "personal" }
},
{
"id": "8a1d4c2b-7e9f-4b3a-a6d5-1f2e3d4c5b6a",
"name": "Production",
"endpoint": "https://sd-def456.stardog.cloud:5820",
"auth": "sso",
"workspace": { "type": "organization", "name": "Acme", "domain": "acme" }
}
]
}
Use the id value as connection_id in your Voicebox requests.
Connection names aren’t unique. Two connections can have the same name, including in different organizations. If your script looks up the connection by name when it starts, check workspace too (an organization’s domain is unique), and fail clearly if more than one connection matches.
To see the other settings your app used (database, model, named graphs, reasoning), open the app in the Voicebox Apps section before you delete it.
Step 3: Update your requests
The ask, generate-query, and stream/ask endpoints all change the same way:
- Change the path from
/api/v1/to/api/v2/. - Send the user API token instead of the app key in
Authorization. - Add the app’s query settings to the request body.
Before (v1):
curl -X POST https://cloud.stardog.com/api/v1/voicebox/ask \
-H "Authorization: Bearer $VOICEBOX_APP_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Which customers placed orders last month?"
}'
After (v2):
curl -X POST https://cloud.stardog.com/api/v2/voicebox/ask \
-H "Authorization: Bearer $STARDOG_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "Which customers placed orders last month?",
"connection_id": "3f2c1a9e-...",
"database": "sales",
"model": "sales-model",
"named_graphs": ["urn:graph:orders"],
"reasoning": false
}'
Request body fields
| Field | Required | Description |
|---|---|---|
query | Yes | The question. Same as v1. |
connection_id | To start a conversation | The id from GET /api/v2/connections. Optional on a follow-up. If you send it, it must match the conversation’s. |
database | To start a conversation | Database name. Optional on a follow-up. If you send it, it must match the conversation’s. |
model | No | Model name. Defaults to default. |
named_graphs | No | List of named graph IRIs. Empty means the default graph and all local named graphs. |
reasoning | No | Whether to run queries with reasoning. Defaults to true. |
conversation_id | No | Continue an existing conversation. Same as v1. |
The response body doesn’t change.
Send model, named_graphs, and reasoning on every request, follow-ups included. A conversation keeps only its connection and database. A follow-up that leaves out the other three falls back to their defaults. For example, if your app had reasoning off, send "reasoning": false on every request, or reasoning turns on.
Headers
| Header | Voicebox app key | User API token |
|---|---|---|
Authorization | Bearer <voicebox-app-key> | Bearer <user-api-token> |
X-Voicebox-App-Key | Accepted on Launchpad alongside an IdP JWT | Removed |
X-SD-Auth-Token | Optional Stardog endpoint token override | Unchanged |
X-Client-Id | Separated users and conversations within an app | Launchpad only. Passed to your LLM provider as the end-user identity. No longer separates conversations. Not available on Stardog Cloud. |
Step 4: Verify and clean up
-
Check the token.
GET /api/v2/whoamireturns the email and a token object with type and expiry. Use it as a health check and to alert before the token expires.curl https://cloud.stardog.com/api/v2/whoami \ -H "Authorization: Bearer $STARDOG_API_TOKEN" - Confirm traffic moved. On the Manage API Keys page, the token’s Last used date updates once your integration calls v2.
- Delete the old app key once nothing uses it. You can still view, rename, and delete apps and keys until the cutoff.
API reference (Swagger)
The v2 API serves its own interactive reference, built with Swagger UI:
| Deployment | Reference URL |
|---|---|
| Stardog Cloud | https://cloud.stardog.com/api/v2/docs |
| Launchpad | https://<your-launchpad-host>/api/v2/docs |
The page covers authentication, the error format, a summary of what changed from v1, and every v2 endpoint with its request and response fields.
To try a request from the page:
- Click Authorize, paste your user API token, and click Authorize again.
- Open an endpoint, click Try it out, fill in the fields, and click Execute.
Requests you send from the page are real requests made as your user.
To generate a client, use the OpenAPI 3.1 spec at /api/v2/openapi.json on the same host.
Things to know
- Conversations don’t carry over. v1 conversations belong to the app. v2 conversations belong to your user account. A
conversation_idfrom v1 won’t work on v2, so start a new conversation after you migrate. - Voicebox API access is still required on Stardog Cloud. The v2 Voicebox endpoints need Voicebox API access on your account, like v1. On Launchpad, Voicebox API access is enabled per deployment.
- Launchpad Bites API:
/api/v1/voicebox/bites/*has no v2 equivalent yet.
FAQ
Can I still create Voicebox apps?
Yes, until the cutoff on February 18, 2027 at 00:00 UTC. At the cutoff, app creation is removed and existing app keys stop working. An app you create now only works until that date, so build new integrations on user API tokens instead.
Can one token serve several integrations?
Yes, but we recommend one token per integration. That way Last used shows you which integration is which, and you can revoke one without breaking the others.
What happens when my token expires?
Requests fail with 401. Create a new token, update the integration, and then delete the old token. Tokens can’t be extended or rotated in place.