Obtain an access token and refresh token
xmatters_obtain_an_access_token_and_refresh_tokenAuthenticate with xMatters by obtaining an access token and refresh token. Use these credentials to securely access xMatters REST API resources.
Instructions
Obtain an access token and refresh token. POST /api/xm/1/oauth2/token. Uses application/x-www-form-urlencoded as in the official cURL --data example, not query credentials from the Python example. grant_type, client_id, username and password come only from server configuration. See C14. Body fields: none. Reference: https://help.xmatters.com/xmapi/#obtain-an-access-token-and-refresh-token Requires operator write opt-in and confirm:true; may notify recipients or change tenant data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"confirm": "<confirm>"
},
"name": "xmatters_obtain_an_access_token_and_refresh_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Explicit approval of this exact mutation. Operator must also enable XMATTERS_ALLOW_WRITES. |