Harry
Harry4h ago

Dialog API

So i keep getting multiple errors: 500 - "{"statusCode":500,"message":"Internal server error"}" Endpoint = https://general-runtime.voiceflow.com/state/user/test-user/interact Headers: { "Content-Type": "application/json", "Authorization": "Bearer VF.DM.RESTOFMYKEY", "versionID": "production" } Body: { "action": { "type": "launch" } } it's published from development to production, i got my API key correct im on a pro trial so not paying yet so unsure?
1 Reply
Tico | Voiceflow Assistant
Most 500s on the DM API are caused by the request not matching what the runtime expects. In your call two things stand out: 1. Authorization header should be ONLY the key – no “Bearer ” prefix
Authorization: VF.DM.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Authorization: VF.DM.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The API key itself already identifies the scheme, so adding Bearer makes the key invalid and the runtime can’t resolve the version, which is returned as a generic 500. 2. Everything else in your request looks fine
POST https://general-runtime.voiceflow.com/state/user/test-user/interact
Headers
Content-Type: application/json
Authorization: <KEY-ONLY>
versionID: production # or development while testing
Body
{
"action": { "type": "launch" }
}

POST https://general-runtime.voiceflow.com/state/user/test-user/interact
Headers
Content-Type: application/json
Authorization: <KEY-ONLY>
versionID: production # or development while testing
Body
{
"action": { "type": "launch" }
}

After removing the Bearer prefix you should receive a normal 200 response with an array of trace objects rather than the 500. Extra checks if you still see an error: • Make sure the API key is copied from Integration › API Key of the SAME project you published. It must start with VF.DM.. • If you just published, wait ~30 s and try again, or use header versionID: development to hit the live canvas version. • The Pro trial plan fully supports the DM API – no payment is required for it to work. Docs: https://docs.voiceflow.com/reference/stateinteract-1
Voiceflow
Interact
Sends a request to advance the conversation session with your Voiceflow project. Requests There are different types of requests that can be sent. To see a list of all request types, check out the documentation for the action field below. To start a conversation, you should send a launch request . Th…

Did you find this page helpful?