Skip to content

Discovery

Use the discovery endpoints to identify who is authenticated, which workspaces they belong to, and which agents they can access. These are typically the first calls you make after obtaining an API key.

Returns the authenticated user’s profile.

GET /v1/me

None.

{
"id": 1234,
"email": "user@example.com",
"name": "Jane Smith",
"username": "janesmith",
"created_at": "2025-06-15T10:30:00.000Z"
}
Terminal window
curl https://api.gen.pro/v1/me \
-H "X-API-Key: your-api-key"
StatusError codeDescription
401unauthorizedMissing or invalid API key.

Returns the organizations (workspaces) where the authenticated user is an owner or manager.

GET /v1/workspaces

None.

[
{
"id": 10,
"name": "My Company"
},
{
"id": 25,
"name": "Side Project"
}
]
Terminal window
curl https://api.gen.pro/v1/workspaces \
-H "X-API-Key: your-api-key"
StatusError codeDescription
401unauthorizedMissing or invalid API key.

Returns the agents accessible to the authenticated user. Use the optional workspace_id filter to scope results to a single workspace.

GET /v1/agents
ParameterTypeRequiredDescription
workspace_idintegerNoFilter agents to a specific workspace.
[
{
"id": 42,
"name": "TrendBot",
"workspace_id": 10
},
{
"id": 87,
"name": "ProductReviewer",
"workspace_id": 10
}
]
Terminal window
# All agents
curl https://api.gen.pro/v1/agents \
-H "X-API-Key: your-api-key"
# Filtered by workspace
curl "https://api.gen.pro/v1/agents?workspace_id=10" \
-H "X-API-Key: your-api-key"
StatusError codeDescription
401unauthorizedMissing or invalid API key.