Skip to content

Instantly share code, notes, and snippets.

@tayhalla
Created March 11, 2020 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tayhalla/d292b4031fcb90d124519b4e5f91dac0 to your computer and use it in GitHub Desktop.
Save tayhalla/d292b4031fcb90d124519b4e5f91dac0 to your computer and use it in GitHub Desktop.

Inital (read) call to the stateless action APIs:

Initial /invoke call with a read action

POST /api/v4/implementations/invoke/ HTTP/1.1
Host: zapier.com
Content-Type: application/json
Accepts: application/json
Authorization: Bearer SOMEKEY

{
"selected_api": "SalesforceAPI",
"action": "accounts",
"type_of": "read",
"authentication_id": 999,
"params": {
    "foo": "bar"
  }
}

Response for an invoke (read) action that supports paging

HTTP/1.1 200 OK
Content-Type: application/json
X-Next-Page-Token: {{token}}
{
  "results": [...]
}

Response for an /invoke (read) action that does not support paging

HTTP/1.1 200 OK
Content-Type: application/json
{
  "results": [...]
}

Paging endpoint

Initial /invoke call with a read action

GET /api/v4/implementations/page?token={PAGING_TOKEN} HTTP/1.1
Host: zapier.com
Content-Type: application/json
Accepts: application/json
Authorization: Bearer SOMEKEY
HTTP/1.1 204 OK

Response for an /invoke/paging (read) action that supports paging

HTTP/1.1 200 OK
Content-Type: application/json
X-Next-Page-Token: {{token}}
{
  "results": [...]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment