Internal API
Social workflow engine
3 endpoints.
POST
/api/v1/internal/workflow-engine/social/attach-photosAttach Social Photos
Attach photos to an existing draft without rewriting it.
The photos are resolved after the draft is stored, and a PUT would demand the whole form and overwrite whatever it was not told.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Keyrequired | header | string | |
x-internal-api-key | header | string | null |
Request bodyrequired
application/jsonToolAttachSocialPhotosBody| Field | Type | Description |
|---|---|---|
businessIdrequired | string (uuid) | |
socialPostIdrequired | string (uuid) | |
photoIds | string (uuid)[] | null | string (uuid)[] | null fields |
mediaStatus | string | null | |
workflowRunId | string | null |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
POST
/api/v1/internal/workflow-engine/social/review-mediaReview Social Media
Vision-review the photo candidates the worker found in the library.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Keyrequired | header | string | |
x-internal-api-key | header | string | null |
Request bodyrequired
application/jsonToolReviewSocialMediaBody| Field | Type | Description |
|---|---|---|
businessIdrequired | string (uuid) | |
mediaBrief | object | null | |
candidatesrequired | object[] | min items 1object[] fields |
workflowRunId | string | null | |
ranked | boolean | default false |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | object | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
POST
/api/v1/internal/workflow-engine/social/verify-photoVerify Social Photo
Does this reframed image work in a feed? One image, one verdict.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Keyrequired | header | string | |
x-internal-api-key | header | string | null |
Request bodyrequired
application/jsonToolVerifySocialPhotoBody| Field | Type | Description |
|---|---|---|
businessIdrequired | string (uuid) | |
mediaBrief | object | null | |
assetIdrequired | string (uuid) | |
intent | object | null | |
workflowRunId | string | null |
Responses
200Successful Responseapplication/jsonSuccessResponse_dict_| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | object | |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.