Introduction

The ContentBot Zapier API was developed for the sole purpose of connecting your ContentBot account with Zapier. Although you can make direct requests to this API, we highly recommend using our Zapier App instead as it simplifies usage.

The have used a REST based architecture, meaning that pathing should be intuitive and easy to understand. All data is returned as JSON with the appropriate HTTP status code depending on the output produced.

Our API accepts both GET and POST methods, depending on the desired outcome of the path. All requests require an API key, please see the authentication section for more information.

Base URL
https://contentbot.ai/app/api/zapier

Authentication

All requests require an API key, which can be obtained from within your ContentBot.ai account. Your API key should be appended to every request as a query paramater, as seen in the sample card on the right-hand side of the screen.

Before running any additional requests, you should call the /auth endpoint, as this will link your account. If this is not enabled at least once, no data will be pulled/pushed via the API.

Authentication
/:route/?api_key=:apikey

Errors

We use standard HTTP response codes to indicate success or errors within the API. Codes within 2xx range indicate success, whereas codes within the 4xx range indicate a failure.

When an error occurs, for example a 401 (Unauthorized) status, you will still receive a response, however, it will be empty. As a result, you must evaluate the status code to determine if the request was successfult (200).

Errors (Example status: 401)
[]

/auth

Authorize your ContentBot for the first time, and enable the Zapier integration. This will allow you to publish a document to Zapier.

Query Parameters
string
api_key *
Your ContentBot API Key
Parameters marked with * are required, and must have a value.
Route GET
/auth/?api_key=:apikey
Example Response
{    "username": "John Doe" }
Since: V1.0.0

/documents

Fetch your most recent documents, from newest (creation) to oldest. This endpoint is used to provide dynamic documents to Zapier ID inputs. It cannot be used as a trigger at this stage.

Query Parameters
string
api_key *
Your ContentBot API Key
int
page
Page number for the results
Parameters marked with * are required, and must have a value.
Route GET
/documents/?api_key=:apikey
Example Response
[    {       "id": "b2338405227f21bd060d5ea66c86ad3e",       "documentId": 1,       "title": "ContentBot & Zapier: Content Marketing just got easier",       "html": "<h1>Fight back against the blank page<\/h1><p>Get ideas and inspiration, and even some of your needed content in a few clicks. All content is unique and original. Simply tweak it and go. No more blank pages!<\/p>",       "created": "2023-02-07",       "createdTimestamp": 1675756933,       "link": "https:\/\/contentbot.ai\/app\/writer\/1",       "folderId": 0    } ]
Since: V1.0.0

/documents/pull

Fetch documents from your publish queue, once a document is retrieved it is removed from the queue. This is used for the Publish Document trigger on Zapier.

Query Parameters
string
api_key *
Your ContentBot API Key
Parameters marked with * are required, and must have a value.
Route GET
/documents/pull/?api_key=:apikey
Example Response
[    {       "id": "b2338405227f21bd060d5ea66c86ad3e",       "documentId": 1,       "title": "ContentBot & Zapier: Content Marketing just got easier",       "html": "<h1>Fight back against the blank page<\/h1><p>Get ideas and inspiration, and even some of your needed content in a few clicks. All content is unique and original. Simply tweak it and go. No more blank pages!<\/p>",       "created": "2023-02-07",       "createdTimestamp": 1675756933,       "link": "https:\/\/contentbot.ai\/app\/writer\/1",       "folderId": 0    } ]
Since: V1.0.0

/documents/push

Create or Update a document on ContentBot. This is used for the Create/Update Document action on Zapier.

Query Parameters
string
api_key *
Your ContentBot API Key
Body Parameters
int
id
ID to update, leave empty to create
string
title *
Title as plaintext
string
html *
Content as HTML
Parameters marked with * are required, and must have a value.
Route POST
/documents/push/?api_key=:apikey
Example Response
{    "id": "b2338405227f21bd060d5ea66c86ad3e",    "documentId": 1,    "title": "ContentBot & Zapier: Content Marketing just got easier",    "html": "<h1>Fight back against the blank page<\/h1><p>Get ideas and inspiration, and even some of your needed content in a few clicks. All content is unique and original. Simply tweak it and go. No more blank pages!<\/p>",    "created": "2023-02-07",    "createdTimestamp": 1675756933,    "link": "https:\/\/contentbot.ai\/app\/writer\/1",    "folderId": 0 }
Since: V1.0.0

/documents/find

Find a document by ID or broad title match, we'll return the closes matching document. This is used for the Find Document action on Zapier.

Query Parameters
string
api_key *
Your ContentBot API Key
Body Parameters
int
id
Exact ID to find
string
title
Title phrase to search for
Parameters marked with * are required, and must have a value.
Route POST
/documents/find/?api_key=:apikey
Example Response
[    {       "id": "b2338405227f21bd060d5ea66c86ad3e",       "documentId": 1,       "title": "ContentBot & Zapier: Content Marketing just got easier",       "html": "<h1>Fight back against the blank page<\/h1><p>Get ideas and inspiration, and even some of your needed content in a few clicks. All content is unique and original. Simply tweak it and go. No more blank pages!<\/p>",       "created": "2023-02-07",       "createdTimestamp": 1675756933,       "link": "https:\/\/contentbot.ai\/app\/writer\/1",       "folderId": 0    } ]
Since: V1.0.0

/flows/pull

Fetch content from your flow publish queue, once content is retrieved it is removed from the queue. This is used for the Publish From Flow trigger on Zapier.

Query Parameters
string
api_key *
Your ContentBot API Key
Parameters marked with * are required, and must have a value.
Route GET
/flows/pull/?api_key=:apikey
Example Response
[    {       "id": "b2338405227f21bd060d5ea66c86ad3e",       "flowId": 1,       "content": "Get ideas and inspiration, and even some of your needed content in a few clicks. All content is unique and original. Simply tweak it and go. No more blank pages!"    } ]
Since: V1.0.1