WaylineAPI docs
Menu

Authentication

Every request to the REST API carries an API key. Use this for backend integrations, syncs and automations that call Wayline directly.

To connect your personal AI assistant, use the MCP sign-in flow instead: sign in with your Wayline account and approve the assistant's access. MCP also accepts API keys when the client supports custom authorization headers.

Sending a key#

Authorization: Bearer wapi_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Getting a key#

An organization admin creates keys in Wayline: click your name at the bottom of the left sidebar, then Organization Settings → Developer → API key.

  • Give the key a name you'll recognize later (where it is used, or who uses it).
  • Choose when it expires: 30, 90 (the default), 180 or 365 days. Every key expires.
  • The key is shown once, when it is created. Store it in a secret manager; Wayline keeps only a hash of it and cannot show it again.
  • An organization can have up to 25 keys. Delete a key from the same page to revoke it at once.

What a key can do#

A key acts for its organization only, with full read and write access to everything in this API, through REST and through the MCP server alike. Ids belonging to another organization are answered as 404 not_found, exactly as if they did not exist.

Writes made with a key are not attributed to a person: a question, answer or guardrail created through the API has no creator, unlike one added in the Wayline app.

Errors#

StatusCodeWhen
401missing_api_keyNo Authorization header
401invalid_api_keyThe key is malformed, unknown, deleted or expired, or its organization is inactive

Both 401s carry WWW-Authenticate: Bearer.