API Keys

Create an API key

Creates a new API key associated with one or more workspaces. The response includes the key token which is only shown once upon creation.

post/v1/keys

Request

  • Base URL
    https://ai.liara.ir
  • URL
    https://ai.liara.ir/v1/keys
  • Auth
    API key in header Authorization

Request body

namestring required

Unique name for the API key

workspacesstring[] required

Array of workspace names to associate with this key

Response

API key created

namestring
enabledboolean
keystring

The API key. It's only shown once.

_idstring

Changes

No recorded changes to this operation across all 4 revisions of this API.