Adhook
Communication Bearer tokenSchedule social media posts, run ad promotions and manage subtenants on adhook from any Windmill script, flow or app.
Set up in 3 steps
Get an API token
In adhook, open your account settings and create an API token for the tenant the scripts should act on.
Add the resource in Windmill
Open Resources, add a resource of type adhook, and paste the token.
Run your first script
Fork any script below and read before writing anything. There are dozens here, so search by the verb you need.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
Upload video
Upload image
Update tag
Update subtenant
Update promotion settings
Update promotion budget settings
Update promotion
Update post status
Update post by external id
Update post
Update placement status
Update custom event by external id
Update custom event
Update communication plan item
Update ad status
Search promotions
Search products
Search posts
Search pages
Retry promotion activation
Retry post activation
Reactivate promotion
Modify ad
Get write subtenants count
Get write subtenants
Get titles
Get targeting templates to manage
Get targeting templates
Get targeting template promotion
Get target statistics
Resource type
adhook — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| token | string | Yes |
Questions
Which tenant does it act on?
The one the token belongs to. Managing several means a resource per tenant, or the subtenant scripts, which take the target explicitly.
Is my token stored on the hub?
Never. It lives only in your own Windmill workspace, encrypted at rest.