API Reference

Authentication

Learn how to get your api token and how to authenticate your request

Get your API Token

  • Log into the Zigpoll Dashboard
  • Click Integrations
  • Scroll down to Private Keys click Add Key
  • Give the key a label, copy the key for use with the API.

Use the API token in your requests

Copy your API key. For every request you make, add a header with name equal to Authentication and value equal to YOUR API KEY.

See below for an example request made with axios:

import axios from 'axios';

const url = 'https://v1.zigpoll.com/me';

const headers = {
  'Authorization': 'YOUR API KEY',
};

axios.get(url, { headers })
  .then(response => {
    console.log(response.data);
  });