Hatch

Keep an AI key (anthropic or openai) in this account, sealed at rest. Refused while keeping keys is off.

On this page

PUT/api/ai-keys/{name}

Authorization

  • session: Authorization: Bearer <token>. The session token from signing in (or the session cookie in a browser on the same origin).

Path parameters

  • name string (required)

Request body

  • key string: The key, exactly as the service gave it. At most 4000 characters

Response

200: It worked

  • ok true (required)

Other answers:

  • 4XX: Refused, with a message to show the person