Create Agent
Create a new agent. If iconUrl is provided, the server will fetch the icon from the external URL and upload it to R2 storage. The response will contain the R2 URL.
Request body
Example request
{
"agent": {
"platform": "agent0",
"url": "https://agent0.example.com/agents/abc123"
}
}Response
Agent created successfully
Example response
{
"agent": {
"agent": {
"platform": "agent0",
"url": "https://agent0.example.com/agents/abc123"
}
}
}Changes
Changed in 3 of the 11 revisions of this API.223
- ○
added the optional property
agent/developerIdto the response with the201statusresponse-optional-property-added
- ○
- ▲
the
coderesponse property const valueINTERNAL_SERVER_ERRORwas removed for the status500response-property-const-removed
- ▲
the
coderesponse property const valueUNAUTHORIZEDwas removed for the status401response-property-const-removed
- ●
added the new
INTERNAL_SERVER_ERRORenum value to thecoderesponse property for the response status500response-property-enum-value-added
- ●
added the new
UNAUTHORIZEDenum value to thecoderesponse property for the response status401response-property-enum-value-added
- ○
api operation id
postApiV1Agentsremoved and replaced withapi-operation-id-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○