curl --request POST \
--url https://general-runtime.voiceflow.com/v4/project/{projectID}/session \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"userID": "<string>"
}
'{
"sessionKey": "<string>"
}Start a new conversation and get a session key for interacting with an agent, routing traffic based on its traffic split.
curl --request POST \
--url https://general-runtime.voiceflow.com/v4/project/{projectID}/session \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"userID": "<string>"
}
'{
"sessionKey": "<string>"
}The start session endpoint creates a new conversation session and returns a sessionKey. Use this key as your authentication credential when calling the Interact and Interact (non-stream) endpoints. This start session endpoint respects the traffic split setup in your project. If you’d like to send traffic to a specific environment, use Start session (specific environment) instead.Documentation Index
Fetch the complete documentation index at: https://docs.voiceflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Voiceflow API key
The ID of the target Voiceflow project. You can find it in the settings for your agent.
Unique ID for the user. If a session already exists for this user, the existing session will end and a new session will be created with a new session key.
1 - 256A session-scoped authentication key. Pass this as the authorization header when calling the interact endpoints.
Was this page helpful?