26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

Check a user integration token

Check a user integration token

GET  /api/v1/billing/user/tokens/check

Checks that the user token in the Authorization is a valid integration token.

If integration_id is provided, also checks that this exact identifier is assigned to the token (the identifier is assigned by the Check a user token).

Method parameters

string integration_id, Identifier that must be assigned to the token. Maximum 255 characters

204  No Content

Token is valid (and the specified integration_id)

401  Unauthorized

Token missing, invalid, or not an integration token

403  Forbidden

The specified integration_id

422  Unprocessable Entity

Returns a JSON error object. For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request GET \
	--url 'https://your-domain/api/v1/billing/user/tokens/check' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "integration_id": "string"
}'
PHP
PHP
$data = array (
  'integration_id' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/billing/user/tokens/check', false, $context);