Security & Auth APIs

The Security & Auth APIs help you manage API and Session keys for secure application access. These APIs include endpoints to create, verify, and delete keys, ensuring robust security and authentication. By using these endpoints, you can control access to your services and maintain a secure environment.

Endpoints Section

Create A New Key

This API creates a new key. A key with the owner, admin, and developer roles can create a key for the same account. An API key can create an API key and a session key. If expires_in is not specified, it is set to the default duration of the key types. The default duration of a session key is within 2 hours, and for an API key, it is 7 days. If scopes are not specified, it is set to the user.

Endpoint/utils/auth/keys/v1
MethodPOST
Tagsplatform, auth
API PlaygroundClick Here
POST
https://api.xinfer.ai/utils/auth/keys/v1
# This tab is intentionally left blank.

Who am I?

Get the information about the authenticated key. It is used to check whether the key is valid and to get the details of the key.

Endpoint/utils/auth/me/v1
MethodGET
Tagsplatform, auth
API PlaygroundClick Here
GET
https://api.xinfer.ai/utils/auth/me/v1
# This tab is intentionally left blank.

Forget Me

Turn off the authenticated key. It turns off the authenticated key and deletes the cookie if it exists.

Endpoint/utils/auth/forget-me/v1
MethodPOST
Tagsplatform, auth
API PlaygroundClick Here
POST
https://api.xinfer.ai/utils/auth/forget-me/v1
# This tab is intentionally left blank.

Delete Key

Delete the key by id or key. Authenticated keys with owner, admin, and developer scopes can delete keys belonging to the same account. The deletion of the authenticated key is not allowed.

Endpoint/utils/auth/keys/v1/{id_or_key}
MethodDELETE
Tagsplatform, auth
API PlaygroundClick Here
DELETE
https://api.xinfer.ai/utils/auth/keys/v1/{id_or_key}
# This tab is intentionally left blank.

Was this page helpful?