Single User API Key
https://api.xata.io/user/keys/key_name
This endpoint allows operations on a single API key for a given user.
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
key_name | API Key name | path | ✅ | string |
Create and Return New API Key
POSThttps://api.xata.io/user/keys/key_name
Create and return new API key
Responses
type CreateUserAPIKey = {
name: string;
key: string;
createdAt: DateTime;
};
/**
* @format date-time
*/
type DateTime = string;
type CreateUserAPIKey = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
type CreateUserAPIKey = {
id?: string;
message: string;
};
type CreateUserAPIKey = void;
Delete an Existing API Key
DELETEhttps://api.xata.io/user/keys/key_name
Delete an existing API key
Responses
type DeleteUserAPIKey = void;
type DeleteUserAPIKey = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
type DeleteUserAPIKey = {
id?: string;
message: string;
};
type DeleteUserAPIKey = void;