API Reference
https://api.xata.io/user/oauth/tokens/token
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
token | path | ✅ | string |
Delete an Access Token for a Third Party App
DELETEhttps://api.xata.io/user/oauth/tokens/token
Expires the access token for a third party app
Responses
type DeleteOAuthAccessToken = void;
type DeleteOAuthAccessToken = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
type DeleteOAuthAccessToken = {
id?: string;
message: string;
};
type DeleteOAuthAccessToken = {
id?: string;
message: string;
};
type DeleteOAuthAccessToken = void;
Updates an Access Token for a Third Party App
PATCHhttps://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;
};
type UpdateOAuthAccessToken = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
type UpdateOAuthAccessToken = {
id?: string;
message: string;
};
type UpdateOAuthAccessToken = {
id?: string;
message: string;
};
type UpdateOAuthAccessToken = void;