FoPost Ads API

Ads, audiences and lead forms across ad networks

GitHub OpenAPI

Operations 165

GET /v1/ads List ads #
POST /v1/ads Create an ad #
POST /v1/ads/boost Boost a published post #
PATCH /v1/ads/{id} Pause or resume an ad #
DELETE /v1/ads/{id} Delete an ad #
POST /v1/ads/{id}/refresh Refresh an ad’s status and insights #
GET /v1/ads/external List ads made outside FoPost #
GET /v1/ads/boostable List posts that can be boosted #
GET /v1/ads/connections List ad connections #
POST /v1/ads/connections/meta/authorize Start an ad connection #
GET /v1/ads-connect/{provider}/callback Finish an ad connection #
DELETE /v1/ads/connections/{id} Remove an ad connection #
GET /v1/ads/providers List ad networks #
POST /v1/ads/connections/google/authorize Start a Google Ads connection #
GET /v1/ads/google/keywords List Google Ads keywords #
POST /v1/ads/google/keywords Add a keyword #
PATCH /v1/ads/google/keywords/{id} Pause, resume or rebid a keyword #
DELETE /v1/ads/google/keywords/{id} Remove a keyword #
POST /v1/ads/google/keyword-ideas Find keyword ideas #
POST /v1/ads/google/keyword-metrics Read historical keyword metrics #
GET /v1/ads/google/search-terms List search terms #
GET /v1/ads/google/bid-strategies List portfolio bid strategies #
POST /v1/ads/google/bid-strategies Create a bid strategy #
GET /v1/ads/google/ad-schedule Read a campaign ad schedule #
PUT /v1/ads/google/ad-schedule Replace a campaign ad schedule #
GET /v1/ads/google/negative-keywords List negative keyword lists #
POST /v1/ads/google/negative-keywords Create a negative keyword list #
POST /v1/ads/google/negative-keywords/keywords Add keywords to a negative list #
POST /v1/ads/google/negative-keywords/attach Attach a negative list to a campaign #
GET /v1/ads/google/assets List account assets #
POST /v1/ads/google/assets Create an asset #
POST /v1/ads/google/assets/attach Attach an asset to the account or a campaign #
DELETE /v1/ads/google/assets/{id} Detach an asset #
GET /v1/ads/google/asset-groups List Performance Max asset groups #
POST /v1/ads/google/asset-groups Create a Performance Max asset group #
PATCH /v1/ads/google/asset-groups/{id} Rename, pause or resume an asset group #
DELETE /v1/ads/google/asset-groups/{id} Remove an asset group #
GET /v1/ads/google/recommendations List recommendations #
GET /v1/ads/google/optimization-score Read the optimization score #
POST /v1/ads/google/recommendations/apply Apply recommendations #
POST /v1/ads/google/recommendations/dismiss Dismiss recommendations #
GET /v1/ads/google/local-services List Local Services leads #
GET /v1/ads/google/conversions List conversion actions #
POST /v1/ads/google/conversions Create a conversion action #
POST /v1/ads/google/conversions/upload Upload click conversions #
POST /v1/ads/google/conversions/adjustments Upload conversion adjustments #
POST /v1/ads/insights/query Run a GAQL query #
GET /v1/ads/sources List ad accounts and Pages #
GET /v1/ads/goals List the goals a connection can run #
GET /v1/ads/catalogs List product catalogs #
POST /v1/ads/catalogs Create a product catalog #
GET /v1/ads/catalogs/{id} Get a product catalog #
PATCH /v1/ads/catalogs/{id} Rename a product catalog #
DELETE /v1/ads/catalogs/{id} Delete a product catalog #
GET /v1/ads/catalogs/{id}/products List catalog products #
POST /v1/ads/catalogs/{id}/products Upsert or delete catalog products #
GET /v1/ads/catalogs/{id}/feeds List product feeds #
POST /v1/ads/catalogs/{id}/feeds Create a product feed #
DELETE /v1/ads/catalogs/{id}/feeds/{feedId} Delete a product feed #
GET /v1/ads/catalogs/{id}/feeds/{feedId}/uploads List feed uploads #
POST /v1/ads/catalogs/{id}/feeds/{feedId}/uploads Fetch a product feed now #
GET /v1/ads/catalogs/{id}/product-sets List product sets #
POST /v1/ads/catalogs/{id}/product-sets Create a product set #
PATCH /v1/ads/catalogs/{id}/product-sets/{setId} Rename or refilter a product set #
DELETE /v1/ads/catalogs/{id}/product-sets/{setId} Delete a product set #
GET /v1/ads/reach-frequency List reach and frequency predictions #
POST /v1/ads/reach-frequency Predict reach and frequency #
GET /v1/ads/reach-frequency/{id} Get a prediction #
POST /v1/ads/reach-frequency/{id}/reserve Reserve a prediction #
POST /v1/ads/reach-frequency/{id}/cancel Cancel a reservation #
GET /v1/ads/library Search the public ad archive #
GET /v1/ads/partnership/creators List allowlisted creators #
POST /v1/ads/partnership/creators Ask a creator for partnership permission #
DELETE /v1/ads/partnership/creators/{creatorId} Revoke a partnership permission #
GET /v1/ads/account/activity List the ad account's activity log #
GET /v1/ads/account/labels List ad labels #
POST /v1/ads/account/labels Create an ad label #
PATCH /v1/ads/account/labels/{id} Rename an ad label #
DELETE /v1/ads/account/labels/{id} Delete an ad label #
POST /v1/ads/account/labels/{id}/apply Put a label on a campaign, ad set or ad #
GET /v1/ads/account/studies List A/B studies #
POST /v1/ads/account/studies Create an A/B study #
GET /v1/ads/account/studies/{id} Get an A/B study #
DELETE /v1/ads/account/studies/{id} Delete an A/B study #
GET /v1/ads/account/ios-limits List iOS 14 campaign limits #
GET /v1/ads/account/high-demand-periods List high-demand periods #
POST /v1/ads/account/high-demand-periods Declare a high-demand period #
DELETE /v1/ads/account/high-demand-periods/{id} Delete a high-demand period #
GET /v1/ads/account/value-rule-sets List value rule sets #
POST /v1/ads/account/value-rule-sets Create a value rule set #
DELETE /v1/ads/account/value-rule-sets/{id} Delete a value rule set #
GET /v1/ads/audiences List custom audiences and pixels #
POST /v1/ads/audiences Create a custom audience #
GET /v1/ads/targeting/search Search the targeting catalogue #
GET /v1/ads/lead-forms List Instant Forms #
POST /v1/ads/lead-forms Create an Instant Form #
GET /v1/ads/lead-forms/{formId}/leads List a form’s leads #
GET /v1/ads/{id}/insights Get an ad’s insights over a date range #
GET /v1/ads/insights Get insights over a date range #
POST /v1/ads/reach-estimate Estimate audience size #
GET /v1/ads/tiktok/business-centers List TikTok Business Centers #
GET /v1/ads/tiktok/identities List TikTok identities #
GET /v1/ads/spark-posts List posts a Spark ad can promote #
POST /v1/ads/conversions Send conversions to a pixel #
POST /v1/ads/conversions/events Send conversions to a pixel (idempotent) #
GET /v1/ads/conversions/events List recent conversion batches #
GET /v1/ads/pixels List the pixels on an ad account #
POST /v1/ads/pixels Create a pixel #
GET /v1/ads/pixels/{id} Read a pixel with its install code #
PATCH /v1/ads/pixels/{id} Rename a pixel or change its data use #
POST /v1/ads/pixels/{id}/share Share a pixel with another ad account #
GET /v1/ads/pixels/{id}/stats Fires per event over the last 28 days #
GET /v1/ads/pixels/{id}/match-quality Event match quality per event name #
GET /v1/ads/custom-conversions List custom conversions on an ad account #
POST /v1/ads/custom-conversions Create a custom conversion #
GET /v1/ads/custom-conversions/{id} Read a custom conversion #
PATCH /v1/ads/custom-conversions/{id} Update a custom conversion #
DELETE /v1/ads/custom-conversions/{id} Delete a custom conversion #
GET /v1/ads/comments List the comments on an ad #
POST /v1/ads/comments/{id}/reply Reply to a comment on an ad #
POST /v1/ads/comments/{id}/hide Hide or show a comment on an ad #
DELETE /v1/ads/comments/{id} Delete a comment on an ad #
GET /v1/ads/accounts/{adAccountId}/tree Get an ad account’s campaign tree #
POST /v1/ads/campaigns Create a campaign #
GET /v1/ads/campaigns/{id} Get a campaign #
PATCH /v1/ads/campaigns/{id} Update a campaign #
DELETE /v1/ads/campaigns/{id} Delete a campaign #
POST /v1/ads/campaigns/{id}/duplicate Duplicate a campaign #
POST /v1/ads/ad-sets Create an ad set #
GET /v1/ads/ad-sets/{id} Get an ad set #
PATCH /v1/ads/ad-sets/{id} Update an ad set #
DELETE /v1/ads/ad-sets/{id} Delete an ad set #
POST /v1/ads/ad-sets/{id}/duplicate Duplicate an ad set #
POST /v1/ads/ads Create an ad in an ad set #
GET /v1/ads/ads/{id} Get an ad #
PATCH /v1/ads/ads/{id} Update an ad #
DELETE /v1/ads/ads/{id} Delete an ad #
POST /v1/ads/ads/{id}/duplicate Duplicate an ad #
POST /v1/ads/status Pause or resume many objects #
GET /v1/ads/creatives List the creative library #
POST /v1/ads/creatives Create a creative #
GET /v1/ads/creatives/{id} Get a creative #
DELETE /v1/ads/creatives/{id} Delete a creative #
GET /v1/ads/audiences/{id} Get a custom audience #
PATCH /v1/ads/audiences/{id} Rename or describe a custom audience #
DELETE /v1/ads/audiences/{id} Delete a custom audience #
POST /v1/ads/audiences/{id}/users Add people to a customer-list audience #
POST /v1/ads/audiences/{id}/companies Add companies to a company-list audience #
POST /v1/ads/linkedin/bid-pricing Quote what an audience costs at auction #
POST /v1/ads/linkedin/supply-forecast Forecast what a budget would deliver #
GET /v1/ads/linkedin/conversion-rules List conversion rules on an ad account #
POST /v1/ads/linkedin/conversion-rules Create a conversion rule #
GET /v1/ads/linkedin/conversion-rules/{id} Get a conversion rule #
PATCH /v1/ads/linkedin/conversion-rules/{id} Change a conversion rule #
DELETE /v1/ads/linkedin/conversion-rules/{id} Turn a conversion rule off #
POST /v1/ads/linkedin/conversion-rules/{id}/associations Attach a conversion rule to an ad set #
DELETE /v1/ads/linkedin/conversion-rules/{id}/associations Detach a conversion rule from an ad set #
GET /v1/ads/linkedin/conversion-rules/{id}/metrics Read what a conversion rule recorded #
POST /v1/ads/linkedin/conversion-rules/{id}/events Send conversions back to the network #
GET /v1/ads/lead-forms/{formId} Get an Instant Form #
POST /v1/ads/lead-forms/{formId}/archive Archive an Instant Form #
GET /v1/ads/leads List the leads feed #
GET /v1/ads/lead-pages List Pages feeding the leads feed #
POST /v1/ads/lead-pages Collect a Page’s leads #
DELETE /v1/ads/lead-pages/{pageId} Stop collecting a Page’s leads #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/fopost-com:fopost-com-ads-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

fopost-com-ads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: FoPost Ads API
  version: 1.0.0
  description: 'REST API for FoPost — schedule, publish, and analyze social media content across every connected platform.


    ## Authentication


    Programmatic access uses an API key sent in the `X-API-Key` header. Keys are created in the FoPost dashboard under **Developers → API Keys** and are limited to the scopes granted at creation. Requests from the FoPost dashboard use a JWT bearer token instead (`Authorization: Bearer `), which implicitly carries all scopes. Either method works on every endpoint in this document unless noted otherwise.


    ## Scopes


    Each operation lists its required scope (also machine-readable as `x-fopost-scope`): `posts` (includes publishing, deliveries, and media), `workspaces`, `accounts`, `labels`, `webhooks`, `analytics`, `automations`.


    ## Responses


    Every key in a response body and every query parameter is snake_case; request bodies keep the field names documented on each operation. The ads endpoints (`/v1/ads/*`) are the one exception and keep camelCase keys. A single resource is returned as the object itself (`201` on create); a collection is `{ "data": [...], "meta": {...} }`. A success with nothing to return is `204` with an empty body.


    ## Errors


    Errors return `{ "error": "", "message": "" }` with a matching HTTP status, including an unknown route (`404 not_found`) and a server fault (`500 internal_error`). `error` is a stable snake_case code; `message` is for humans and may change. Some errors include additional context fields. A feature that is not set up on this deployment answers `503 not_configured`; a malformed answer from an upstream provider answers `502 upstream_error`.


    ## Request ids


    Every response carries an `X-Request-Id` header. Quote it when contacting support about a specific request.


    ## Rate limiting


    Requests are rate limited per API key, per minute, with a ceiling set by the plan behind the key. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`; exceeding the limit returns `429` with error code `too_many_requests`, a `retry_after` field and a `Retry-After` header. Mutating endpoints additionally require an active subscription and return `403` with error code `subscription_required` without one.


    ## Pagination


    Offset-paged lists accept `page` and `per_page` (1 to 100) and return `meta: { page, per_page, total, total_pages }`. Cursor-paged lists return `meta: { next_cursor, has_more }`; pass `next_cursor` back in the cursor parameter the operation documents until `has_more` is false. Lists that do not paginate return `{ "data": [...] }` with no `meta`.'
  contact:
    name: FoPost Support
    url: https://fopost.com/contact
  license:
    name: Proprietary
    url: https://fopost.com/terms
servers:
- url: https://api.fopost.com
  description: Production
security:
- ApiKeyAuth: []
- BearerAuth: []
- OAuth2: []
tags:


# --- truncated at 32 KB (409 KB total) ---
# Full source: https://artifacts.apis.io/fopost-com/openapi/fopost-com-ads-api-openapi.yml