servicenow
Troubleshooting
If requests fail, run zero doctor check-connector --env-name SERVICENOW_USERNAME or zero doctor check-connector --url https://$SERVICENOW_INSTANCE.service-now.com/api/now/table/incident?sysparm_limit=1 --method GET
How to Use
All examples assume SERVICENOW_USERNAME, SERVICENOW_PASSWORD, and SERVICENOW_INSTANCE (the subdomain before .service-now.com) are set. ServiceNow uses HTTP Basic auth — username and password on every request.
Base URL: https://$SERVICENOW_INSTANCE.service-now.com/api/now/
Pass credentials with -u "$SERVICENOW_USERNAME:$SERVICENOW_PASSWORD".
The Table API (/api/now/table/<table>) is the workhorse — almost every record type (incident, change_request, problem, cmdb_ci, sys_user, etc.) is reachable through it.
1. Verify the Credentials
Fetch one incident to confirm the connection. sysparm_limit=1 keeps the response small: