Typesense · Schema

ApiKeySchema

Full-Text SearchOpen SourceSearch EngineTypo ToleranceVector Search

Properties

Name Type Description
value string Custom API key value. If not provided, one is auto-generated.
description string Human-readable description of the key.
actions array Allowed actions for this key, such as documents:search, collections:create, or * for all.
collections array Collections this key can access. Use * for all collections.
expires_at integer Unix timestamp when this key expires. Set to 0 for no expiration.
View JSON Schema on GitHub

JSON Schema

typesense-apikeyschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ApiKeySchema",
  "title": "ApiKeySchema",
  "type": "object",
  "required": [
    "description",
    "actions",
    "collections"
  ],
  "properties": {
    "value": {
      "type": "string",
      "description": "Custom API key value. If not provided, one is auto-generated."
    },
    "description": {
      "type": "string",
      "description": "Human-readable description of the key."
    },
    "actions": {
      "type": "array",
      "description": "Allowed actions for this key, such as documents:search, collections:create, or * for all.",
      "items": {
        "type": "string"
      }
    },
    "collections": {
      "type": "array",
      "description": "Collections this key can access. Use * for all collections.",
      "items": {
        "type": "string"
      }
    },
    "expires_at": {
      "type": "integer",
      "format": "int64",
      "description": "Unix timestamp when this key expires. Set to 0 for no expiration."
    }
  }
}