- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi everyone,
I am currently troubleshooting an authentication issue when trying to create a ServiceNow CSM Case through the REST API.
Environment
- ServiceNow module: Customer Service Management (CSM)
- Case table: sn_customerservice_case
- Voice/telephony integration: ServiceNow Voice / CCI with Amazon Connect
- ServiceNow instance: <instance>.service-now.com
- Integration method: AWS Lambda calling the ServiceNow REST API
Issue
We are trying to create a CSM Case directly through the Table API, independently of the Interaction/CCI flow.
Endpoint:
POST https://<instance>.service-now.com/api/now/table/sn_customerservice_caseWe tested using Basic Authentication:
Authorization: Basic <base64(username:password)>However, the request consistently returns:
{
"statusCode": 401,
"body": {
"error": {
"message": "User is not authenticated",
"detail": "Required to provide Auth information"
},
"status": "failure"
}
}We tested the same request independently using curl, outside of AWS Lambda, and received the exact same 401 response.
Because the failure occurs identically outside Lambda, we believe the issue is likely related to the ServiceNow authentication/security configuration rather than the Lambda implementation itself.
Any guidance on the specific ServiceNow configuration to check would be greatly appreciated.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @alexkrishna
Did you check the documentation on case API
https://developer.servicenow.com/dev.do#!/reference/api/australia/rest/case-api
https://www.servicenow.com/docs/r/api-reference/rest-apis/case-api.html
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @alexkrishna ,
plz make ensure that you have properly configured basic auth profile in sys_auth_profile_basic table :
I have tested in my instance and working proper with basic auth :
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @alexkrishna
Did you check the documentation on case API
https://developer.servicenow.com/dev.do#!/reference/api/australia/rest/case-api
https://www.servicenow.com/docs/r/api-reference/rest-apis/case-api.html
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @alexkrishna ,
plz make ensure that you have properly configured basic auth profile in sys_auth_profile_basic table :
I have tested in my instance and working proper with basic auth :
If my response helped mark as helpful and accept the solution.
