API Reference
Using the Ag.dev API
Publish a specific agent revision to make it the active version
cURL
curl --request POST \ --url https://api.ag.dev/v0.1/agents/{agentId}/publish \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "revisionId": "<string>" } '
Documentation IndexFetch the complete documentation index at: https://docs.ag.dev/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.ag.dev/llms.txt
Use this file to discover all available pages before exploring further.
Provide either X-API-Key: or Authorization: Bearer
Agent ID
The revision ID to publish
Revision published successfully