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

NameDescriptionInRequiredSchema
key_name

API Key name

path✅string

Create and Return New API Key

POST
https://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;

Delete an Existing API Key

DELETE
https://api.xata.io/user/keys/key_name

Delete an existing API key

Responses

type DeleteUserAPIKey = void;