Create API key

Create a new API key for agent/programmatic access. Requires session-based authentication.

post/keys

Request

  • Base URL: https://namemy.app/api/v1
  • URL: https://namemy.app/api/v1/keys
  • Auth: API key in cookie next-auth.session-token

Request body

namestring
permissionsstring[]
expiresInDaysinteger

Optional expiration in days

Response

API key created (key shown only once)

warningstring

Example response

{
  "warning": "This key will only be shown once. Copy it now."
}

Changes

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