Put an edited photo on the listingComing soon
Adds the edited photo next to the original (add), or replaces the original with it (replace). A replaced original can be restored later.
Coming soon. Adds the edited photo next to the original (add), or replaces the original with it (replace). A replaced original can be restored later.
Scopes: listings:write
Pricing: Included with the connection.
AuthorizationBearer <matchai_<base62>>A personal API key, sent as Authorization: Bearer matchai_…. Create keys in Matchai under Settings → Connectors → Advanced (for developers). A key starts with matchai_ followed by letters and digits, carries the scopes chosen when it was created, and can be revoked at any time. Keys reach only the account that created them: to serve other professionals, use Connect with Matchai.
Scope: listings:write
listing_id*stringListing id, or its slug.
1 <= length <= 200edit_id*stringPhoto edit id.
1 <= length <= 64Idempotency-Key?stringA unique string (a UUID works). Retrying with the same key within 24 hours returns the first response instead of acting twice. Reusing a key with a different body returns 409 idempotency_key_reused.
1 <= length <= 255application/json- body
mode*stringadd puts the edit next to the original. replace swaps the original for it; the original can be restored later.
"add""replace"The edit, now applied.
application/json- response
An edited version of a photo. It is not on the listing until you apply it.
id*stringEdit id.
1 <= length <= 64listing_id*stringListing id.
1 <= length <= 64media_id*stringThe photo it was made from.
1 <= length <= 64kind*stringThe edit kind requested.
status*string"queued""running""succeeded""failed""applied"preview_url?|The edited photo, once it succeeded.
uriapplied_media_id?|The media created or replaced when it was applied.
1 <= length <= 64error?|nullcreated_at*stringRequested.
date-timecompleted_at?|Finished.
date-timecurl -X POST 'https://api.matchai.co/v1/listings/string/photo-edits/string/apply' \ -H 'Idempotency-Key: 6f1d3c2a-0b7e-4f5a-9c8d-1e2f3a4b5c6d' \ -H 'Content-Type: application/json' \ -d '{ "mode": "add"}'{ "id": "string", "listing_id": "string", "media_id": "string", "kind": "string", "status": "queued", "preview_url": "http://example.com", "applied_media_id": "string", "error": { "code": "string", "message": "string" }, "created_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z"}