Skip to main content
POST
/
v1
/
oauth2
/
revoke
PHP (SDK)
declare(strict_types=1);

require 'vendor/autoload.php';

use Spaire;
use Spaire\Models\Components;

$sdk = Spaire\Spaire::builder()->build();

$request = new Components\RevokeTokenRequest(
    token: '<value>',
    clientId: '<id>',
    clientSecret: '<value>',
);

$response = $sdk->oauth2->revoke(
    request: $request
);

if ($response->revokeTokenResponse !== null) {
    // handle response
}
{}

Documentation Index

Fetch the complete documentation index at: https://docs.spairehq.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/x-www-form-urlencoded
token
string
required
client_id
string
required
client_secret
string
required
token_type_hint
enum<string> | null
Available options:
access_token,
refresh_token

Response

200 - application/json

Successful Response

The response is of type RevokeTokenResponse · object.