Skip to main content

API & developers

Make your first API request

Send an authenticated GET request and check the response before building an integration.

Start with a read-only request from a terminal. This confirms the base URL, token, account access, and JSON response before you add the call to application code.

Steps

1

Store the token for this session

Put the copied account token in a local environment variable named VIA_API_TOKEN. Keep the value out of shell history and never commit a real token to an environment file.

2

Request the data source list

Send GET https://app.via.tools/api/v1/data_sources with an Accept application/json header and X-Api-Token set to VIA_API_TOKEN. All production requests must use HTTPS.

VIA API documentation showing an authenticated example request VIA API documentation showing an authenticated example request
VIA API documentation showing an authenticated example request
3

Check the response

A successful request returns JSON and a 200 status. A 401 means the token is missing or invalid; a 403 means API access is not enabled for the account.

4

Move to the endpoint reference

Use the API documentation for parameters, response fields, pagination, and examples for the resource you want to integrate. Handle non-success statuses before scheduling the request.

Open API documentation

Tips

Use the production base URL exactly as shown; there is no separate authentication endpoint.
Start with GET before creating or updating data.
Do not retry 401 or 403 responses without correcting credentials or access first.

Related guides

Product changes affecting this guide

August 03, 2026

More control over audience groups

Audience groups can now use different contact settings, with clearer controls and more reliable counts and exports.