Skip to main content

One doc tagged with "headers"

View all tags

Printing an Auth Token for Manual API Calls

now-sdk auth --print outputs a live authentication token for a stored credential so you can call any ServiceNow REST API by hand. It resolves the credential the same way the SDK does at request time (refreshing an OAuth access token, or negotiating a fresh UI session for basic auth) and writes the result to stdout so it drops straight into curl or a shell variable.