Skip to main content
The VyomFlow API uses Clerk session tokens for authentication. There is no API key or OAuth layer. Every request must include a valid Clerk bearer token in the Authorization header.

Getting a token

Tokens are obtained from the frontend Clerk SDK. Use your Clerk session object to retrieve a fresh token before each request.

Sending the token

Include the token in the Authorization header using the Bearer scheme.
Here is a curl example that shows how to send an authenticated request:

How the backend uses it

The backend verifies the token against Clerk. On first sight, it provisions a User row keyed on your Clerk user id. There is no separate signup or login endpoint.
There is no separate signup or login endpoint. Your Clerk session token is all you need.

Ownership and access control

Every resource — chats, messages, runs, attachments, and waitpoints — is scoped to the authenticated caller. If you request a resource owned by another user, the API returns 404 NOT_FOUND. It never returns 403 or confirms that the resource exists.
Token expired? Call session.getToken() again before retrying — Clerk tokens are short-lived.