How do I authenticate requests to the Clipy API?

Send your Clipy API key as a Bearer token in the Authorization header of every request. Here's the format, a quick way to test a key and common errors.

Last updated

The Clipy API uses secret API keys. Send your key in the Authorization header of every request, as a Bearer token:

Authorization: Bearer clipy_sk_…

Every endpoint lives under the base URL shown at the top of the API reference. Requests and responses are JSON (except file uploads).

What a request reaches

Check that a key works

  1. Create a key in Developers → API keys and store it in an environment variable, for example CLIPY_API_KEY.
  2. Call the Get the workspace endpoint (GET /api/v1/workspace) with the header above. It needs no permission.
  3. A working key gets back your workspace, the products it has and the key's own name and permissions.

The API reference has ready-made examples of this call in cURL, JavaScript and Python.

Things to know

  • Only the key counts. The API ignores cookies, so being signed in to Clipy in your browser doesn't let you call it. It sends no CORS headers either, so call it from your server, not from a web page.
  • One workspace per key. A key can only read or change the workspace it was created in.
  • Rate limits apply per key and per workspace. Over a limit, you get a 429 response with a Retry-After header saying how many seconds to wait.
  • Every response has a request ID, in the X-Request-Id header. Quote it if you contact support about a request.

Common errors

  • 401 unauthorized: the key is missing, malformed or revoked, or the person who created it is no longer an owner or admin.
  • insufficient_scope: the key doesn't have the permission this endpoint needs.
  • product_not_enabled: your workspace doesn't have the product (Clipy Marketplace or Clipy AI) the endpoint belongs to.
  • plan_required: the Clipy AI endpoints need an active paid subscription (a monthly Clipy Credits plan or an active Clipy AI subscription), and your workspace doesn't have one.

Was this helpful?

Still stuck? Contact support, or message the team from Support in the app.