API reference
Publish the saved site draft
Publishes the saved draft to the live site. Review the draft first. Available without a paid subscription.
Publishes the saved draft to the live site. Review the draft first. Available without a paid subscription.
AuthorizationBearer <token>
Create a scoped key in Benjiads → Integrations. Sent only in Authorization.
In: header
Header Parameters
Idempotency-Key*string
8–80 letters, digits, underscores or hyphens. Reuse the same key and arguments for retries. Completed mutations replay for at least 90 days; a pending operation returns 409 and must be reconciled before using a new key.
Match
^[A-Za-z0-9_-]+$Length
8 <= length <= 80Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/site/publish" \ -H "Idempotency-Key: stringst"{ "site": { "id": "string", "slug": "string", "displayName": "string", "status": "string", "tagline": "string", "bio": "string", "photoUrl": "string", "phonePublic": "string", "theme": "string", "accentColor": "string", "brandWordmarkUrl": "string", "brandWordmarkWhiteUrl": "string", "locations": null, "links": null, "socials": null, "siteDoc": null, "siteDraft": null }}