---
title: "Retrieve the WebPros access token"
method: GET
path: "/360Monitoring/webpros_auth_token"
tags: ["360 Monitoring"]
---

# Retrieve the WebPros access token

`GET /360Monitoring/webpros_auth_token`

## Request

- Base URL: `https://whm-server.tld:2087/json-api`
- URL: `https://whm-server.tld:2087/json-api/360Monitoring/webpros_auth_token`
- Auth: HTTP basic

This function returns the stored WebPros access token for
360 Monitoring.

This function does not accept any parameters. It returns the
`access_token` value from the token bundle that the server stored during
the WebPros single sign-on flow, and the number of seconds that remain
before that token expires. The function never returns the refresh token
or the rest of the token bundle.

The function fails with a `data.reason` value of `no_valid_token` when
the server does not store a token or when the stored token is no longer
valid. Use the `360Monitoring/webpros_auth_status` function to find out
why the stored token is not valid, and the
`360Monitoring/webpros_auth_start` function to start a new
authentication flow.

The access token is a bearer credential. Transmit it only over HTTPS and
do not write it to logs.

## Response `200`

The HTTP Request succeeded.

- object
  - `data` object
    - `access_token` string: The WebPros access token. The function only returns this field when a valid token exists.
    - `error` string: The error message. The function only returns this field when it could not return an access token.
    - `expires_in` integer: The number of seconds until the access token expires. The function only returns this field when a valid token exists. The value is `0` when the system could not determine the remaining lifetime.
    - `reason` string: The machine-readable reason that the function could not return an access token. It is the following value: * `no_valid_token` - The server does not store a valid token. Call the `360Monitoring/webpros_auth_status` function for the details.
  - `metadata` object
    - `command` string: The method name called.
    - `namespace` string: The namespace used in the API call.
    - `reason` string: The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 0 | 1: * `1` - Success. * `0` - Failed. Check the `reason` field for more details.
    - `version` integer: The version of the API function.

## Changes

- **2026-09-23** `fe4906fbe393`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cpanel/apis/whm-api/changes/360Monitoring/webpros_auth_token/get.md)

---

[API](https://skmtc.dev/cpanel/apis/whm-api.md) - [All operations](https://skmtc.dev/cpanel/apis/whm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cpanel/apis/whm-api/revisions/6ca2c65397e3?raw)
