Agent Versioning - Drafts
Get draft detail
Changed onDeprecated. By-id reads are kept working during the v1 coexistence window (~1 month). A v1 draftId remains resolvable. Migrate to GET /agent/{id}/branches/{branchId}/draft. Will be removed at the sunset date.
Returns the latest revision of a draft along with its edit history.
get/agent/{id}/drafts/{draftId}
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/agent/{id}/drafts/{draftId}
- AuthHTTP bearer
Path parameters
idstring required
The agent ID.
draftIdstring required
The draft ID
Query parameters
limitinteger
Max number of edit history entries to return (1-100)
Response
Successful response
Example response
{
"status": true
}Changes
- warning
added the new
multi_agentsenum value to the//response property for the response status
- warning
- breaking
added the pattern
^[a-f\d]{24}$to thepathrequest parameterid - info
endpoint deprecated
- breaking