API Reference

https://api.xata.io/user/oauth/tokens/token

Expected parameters

NameDescriptionInRequiredSchema
token
pathstring

Delete an Access Token for a Third Party App

DELETE
https://api.xata.io/user/oauth/tokens/token

Expires the access token for a third party app

Responses

type DeleteOAuthAccessToken = void;

Updates an Access Token for a Third Party App

PATCH
https://api.xata.io/user/oauth/tokens/token

Updates partially the access token for a third party app

Request Body Type Definition

type UpdateOAuthAccessToken = {
    /**
     * expiration time of the token as a unix timestamp
     */
    expires: number;
};

Responses

type UpdateOAuthAccessToken = {
    token: string;
    scopes: string[];
    /**
     * @format date-time
     */
    createdAt: string;
    /**
     * @format date-time
     */
    updatedAt: string;
    /**
     * @format date-time
     */
    expiresAt: string;
    clientId: string;
};