Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.
List Agents
Try this endpoint
app.langwatch.ai
API key · X-Auth-Token
Kept in this tab. Cleared when you reload.
The response appears below.
Request and response examples
request.py
import osimport requestsorigin = "https://app.langwatch.ai"path = "/api/v1/agents"api_key = os.environ["LANGWATCH_API_KEY"]headers = { "X-Auth-Token": api_key,}response = requests.get( origin + path, headers=headers,)print(response.json())const url = "https://app.langwatch.ai/api/v1/agents";const response = await fetch(url, { method: "GET", headers: { "X-Auth-Token": process.env.LANGWATCH_API_KEY!, },});const data = await response.json();curl --request GET \ --url 'https://app.langwatch.ai/api/v1/agents' \ --header "X-Auth-Token: $LANGWATCH_API_KEY"Call the LangWatch API from this project: List agents with their current presence and owner.Request: GET https://app.langwatch.ai/api/v1/agentsReference: https://langwatch.ai/docs/api-reference/agents/list-agents.mdAuthentication: send the X-Auth-Token header, read from the LANGWATCH_API_KEY environment variable. Never hard-code the key.Use the HTTP client this project already uses, handle non-2xx responses, and show me the parsed result.Success
application/json · Generated from schema
{ "data": [ { "id": "string", "name": "string", "type": "signature", "config": {}, "environment": "string", "ownerUserId": "string", "hostLabel": "string", "lastSeenAt": "2026-01-01T00:00:00Z", "parameters": [ { "name": "string", "description": "string", "defaultValue": "string", "secret": false, "type": "string", "options": [ null ], "required": false } ], "owner": { "userId": "string", "name": "string" }, "status": "online", "instances": [ { "instanceId": "string", "hostname": "string", "username": "string", "pid": 0, "label": "string", "sdk": { "name": null, "version": null, "language": null }, "connectedAt": "2026-01-01T00:00:00Z", "inflight": 0, "maxConcurrency": 0 } ], "selectable": false, "notSelectableReason": "owned_by_another_person", "version": 0, "labels": [ { "label": "string", "version": 0 } ], "createdBy": { "id": "string", "name": "string" }, "updatedBy": { "id": "string", "name": "string" }, "createdAt": "2026-01-01T00:00:00Z", "updatedAt": "2026-01-01T00:00:00Z", "platformUrl": "string" } ], "pagination": { "page": -9007199254740991, "limit": -9007199254740991, "total": -9007199254740991, "totalPages": -9007199254740991 }}Query parameters
pageintegerMaximum 9007199254740991
limitintegerMaximum 1000
Responses
200Success
application/json
dataobject[]requiredpaginationobjectrequired