Auth

Create API key

Creates a new org and API key pair. Both fields are optional. The raw key is returned once and never stored in plaintext. Rate limited: 3 keys per IP per 24 hours.

post/api/keys

Request

  • Base URL: https://plith.ai
  • URL: https://plith.ai/api/keys
  • Auth: none required

Request body

emailstring email

Optional. Stored for reference. Must be unique across orgs.

namestring

Optional. Human-readable org name. Defaults to email if omitted.

Example request

{
  "email": "dev@example.com",
  "name": "My Org"
}

Response

API key created — store it securely, shown only once

org_idstring uuid

Unique identifier for the created org.

keystring

Full API key — shown once, never stored in plaintext.

prefixstring

First 12 characters of the key, stored for display/identification.

messagestring
docsstring uri

Example response

{
  "key": "plth_xxxxxxxxxxxx...",
  "prefix": "plth_xxxxxxxx",
  "message": "Store this key securely — it will not be shown again.",
  "docs": "https://plith.ai/docs/authentication"
}

Changes

No recorded changes to this operation across all 1 revision of this API.