Ocoya’s Zapier integration covers common workflows, but for more control or advanced API features, use Zapier’s “Webhooks by Zapier” to send POST requests directly to the Ocoya API to create posts.
In Zapier, create a new Zap and set your trigger event (e.g., new Google Sheets row). Test the trigger.
Add a Webhook action: select Webhooks by Zapier, choose POST, then continue.
Use this URL for the POST request:
https://app.ocoya.com/api/_public/v1/post?workspaceId=YOUR_WORKSPACE_ID
Find your Workspace ID in Ocoya under Workspace settings > General > API workspace id and replaceYOUR_WORKSPACE_ID
in the URL.
Set Payload Type to JSON and add required fields like
caption
(your post text). Optionally includemediaUrls
,socialProfileIds
,scheduledAt
as per Ocoya API docs.
Add header
X-API-Key
with your Ocoya API key (create this in Ocoya under Workspace settings > Developers > API > Create new token, copy key immediately).Test the webhook in Zapier; on success, check the post appears in Ocoya (usually as a draft).
Publish your Zap to activate it; posts will be created automatically when your trigger fires.
Your Zap is now active! Whenever your trigger event occurs, Zapier will use the webhook to send the data directly to Ocoya's API and create a post according to your configuration.