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>" } '
Provide either X-API-Key: or Authorization: Bearer
Agent ID
The revision ID to publish
Revision published successfully