x-bland-session-id
SIP header. Any call made to your inbound number with this header will automatically include the variables you specified when creating the session.
Use Case: This is particularly useful when you need to pass context or variables to an inbound call before the caller connects. For example, you might want to include customer information, campaign data, or other relevant context that your pathway can access during the call.
Headers
Your API key for authentication.
Body
The inbound phone number that this session will be associated with. This should be a phone number you own and have configured for inbound calls.Example format:
"+12223334444"
Optional variables that will be available in your pathway when a call is made using this session token. These variables can include any data you want to pass to the call context.Example:
Response
The session token that should be passed as the
x-bland-session-id
SIP header when making the inbound call.ISO 8601 timestamp indicating when this session token expires. Sessions have a limited lifetime for security purposes. The default is 1 hour.
SIP Integration
To use the session token:- Create a session using this endpoint
- When making a SIP call to your inbound number, include the header:
x-bland-session-id: <token>
- Your Bland call will have access to any variables you specified in the
request_data
field, in addition to any variables you had initially set up for the inbound number.