Session Lifecycle
Examples
Variables
Considerations
Troubleshooting
Export Agentforce Session Tracing Data
Review these troubleshooting tips if you run into issues when calling the API.
If you receive an HTTP 400 response, there’s a problem with your request.
If you recieve an HTTP 401 response, there’s typically an authorization issue. Review Get Started with Agent API.
If you receive an HTTP 404 response, verify that you’re using the correct token and that you’re using the correct endpoint. Review Get Started with Agent API.
If your org is on Government Cloud, make sure you’re calling api.gov.salesforce.com instead of api.salesforce.com.
If you receive an HTTP 423 response, verify that you don’t have any requests in progress as the API only supports one request at a time. Review Get Started with Agent API.
If you receive an HTTP 500 response, verify that you’ve followed the setup instructions correctly.
Content-Type value in the header: Content-Type: application/json.