API Reference
The Flashy API is a REST API served at:
https://api.flashy.appResource-oriented URLs, JSON request bodies and JSON responses. Before you can use the API, you must verify your Flashy account.
Authentication
Your account API key must be included in every request you send to the Flashy API. You can send it in a few ways — choose the best one for you:
- As a request header named
x-api-key— most recommended. - On GET requests, as the query parameter
key=your_account_key. - On requests with a body, as a
keyproperty in the request body.
curl https://api.flashy.app/account \
-H "x-api-key: YOUR_API_KEY"
You can find your API key in your Flashy dashboard under account settings.
The response envelope
Every response is JSON with the same envelope: success tells you whether the call worked, and data carries the result (or null for write operations that return nothing).
{
"success": true,
"data": {
"id": 83,
"account": "r33piu",
"name": "My Account"
}
}
SDKs
Every endpoint below shows the equivalent call for our SDKs where one exists:
- PHP — the PHP SDK wraps the REST API with your API key.
- JS SDK — the website pixel runs in the visitor's browser and covers contacts and events. It identifies the visitor for you; no API key is involved.