Skip to main content

API Tokens

This document will show you how to create an API token for the API in Vendorvue. All Vendorvue API endpoints require one.

Authorization header

To make requests to the API, add the service token values in the Authorization header in your HTTP API request using the following format:

Authorization header
Authorization: Bearer <API_TOKEN_ID>:<API_TOKEN>

Here is a cURL example:

cURL
curl --request GET 'https://api.vendorvue.app/v1/vendors' \
--header 'Authorization: Bearer <API_TOKEN_ID>:<API_TOKEN>'
--header 'accept: application/json'

Creating an API token

To create an API token using the dashboard, log into your organization and click Settings > API.

Give the token a descriptive name (this is used for your reference only) and click Create token.

API token ID

Copy this value to use as API_TOKEN_ID.

The ID is also visible on the API settings page.

API token

The token is generated immediately after the service token is created. You can only see this once.

Copy this value to use as API_TOKEN.