Skip to content

API Overview

All API requests are made to:

https://api.gen.pro/v1

All paths in this reference are relative to the base URL. For example, GET /v1/me means GET https://api.gen.pro/v1/me.

The API supports two authentication methods, sent via HTTP headers:

HeaderDescription
X-API-KeyA Personal Access Token (PAT) created in the GEN dashboard or via the API Keys endpoints.
AuthorizationA Bearer JWT issued by Clerk or Dynamic XYZ (used by the GEN web app).

For programmatic integrations, use X-API-Key. For browser-based apps that already authenticate through GEN’s login flow, use Authorization: Bearer <jwt>.

Terminal window
curl https://api.gen.pro/v1/me \
-H "X-API-Key: your-api-key"

All /autocontentengine/ endpoints require an agent_id query parameter. This scopes every request to a specific GEN agent. The authenticated user must have access to the agent, and the agent’s workspace must have active GEN credits.

Terminal window
curl "https://api.gen.pro/v1/autocontentengine?agent_id=42" \
-H "X-API-Key: your-api-key"

Errors return a JSON object with error (human-readable message) and error_code (machine-readable identifier):

{
"error": "Agent not found",
"error_code": "not_found"
}
CodeMeaning
200Success.
201Resource created.
204Success, no content (used for deletes).
401Unauthorized. Missing or invalid API key / JWT.
404Resource not found, or you don’t have access.
422Validation error. Check the error field for details.

The API currently returns full result sets. There is no cursor or offset-based pagination yet. For large datasets, use filtering parameters where available.

Timestamp fields follow two conventions:

Field patternFormat
created_at, updated_atISO 8601 string ("2026-03-01T12:00:00.000Z")
created_at_ts, updated_at_tsUnix epoch in milliseconds (1709294400000)

Most resource responses include both forms. Use the _ts variants for numeric comparisons and sorting.

A machine-readable OpenAPI specification is available at:

https://api.gen.pro/openapi.yaml

Use it to generate client libraries, import into Postman, or validate requests.