Edits API
Tools
1 endpoint.
POST
/api/v1/edits/businesses/{business_id}/tools/{tool}Call a tool for the business as the person calling (an act runs at once, as theirs)
Authentication
Authorization: Bearer <token>.
Or Authorization: Bearer <token> with X-Internal-Api-Key header.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | path | string (uuid) | |
toolrequired | path | string | The tool's name, as the capabilities catalog lists it |
Request bodyrequired
application/jsonToolCallBody| Field | Type | Description |
|---|---|---|
args | object | |
idempotency_key | string | null |
Responses
200Successful Responseapplication/jsonSuccessResponse_Any_| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | any | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.