Connect ServiceNow or Jira
Connects the organization's ServiceNow instance or Jira site, or replaces its credentials. The credentials are checked with the system before anything is kept, and the password or token goes to the secret store: it is never returned. The address must be https and cannot name a private, loopback or l
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
system*string"servicenow""jira"Idempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
baseUrl*stringThe instance or site, such as https://acme.service-now.com or https://acme.atlassian.net.
8 <= length <= 512username*stringThe service account, or for Jira the account's email.
1 <= length <= 254secret*stringThe account's password (ServiceNow) or API token (Jira). Kept in the secret store, never returned.
1 <= length <= 1024approvedStatuses?array<>Jira only. The statuses that mean approved. Empty means Approved. ServiceNow says it in its own approval field.
items <= 20The connection.
application/json- response
system*string"servicenow""jira"baseUrl*stringusername*stringapprovedStatuses*array<string>pushPath*stringWhere the system pushes to, relative to the API address, such as /api/v1/webhooks/change/3f2....
pushSecret?stringThe secret pushes are signed with. Present only in the answer to the first connection; keep it, it is not shown again.
connectedAt*stringdate-timecurl -X PUT 'https://wardn.example.com/api/v1/change-systems/servicenow' \ -H 'Content-Type: application/json' \ -d '{ "baseUrl": "stringst", "username": "string", "secret": "string"}'{ "system": "servicenow", "baseUrl": "string", "username": "string", "approvedStatuses": [ "string" ], "pushPath": "string", "pushSecret": "string", "connectedAt": "2019-08-24T14:15:22Z"}Disconnect ServiceNow or Jira DELETE
Removes the connection, its push address and its secrets. Tickets already attached stay, are never looked at again, and so become unknown as what the system last said ages. Disconnecting what is not connected changes nothing.
Get the Opsgenie integration GET
Whether Opsgenie is connected and believed, where its credentials are kept and whether they are there (never their values), the signing token as its last four characters, which alerts count, and the schedules mapped to on-call groups. `standing` is `ok` while the last read of the schedules worked an