Quickstart
This Quickstart covers your first authenticated API request. To understand the full integration before implementing it, start with Build your own integration. For platform-specific setup, see Integrations, including Lovable and Bolt.
Choose your client
Before making your first API request, choose a client. Vatly offers packages for JavaScript / TypeScript, Python, and PHP, with framework integrations for Django and Laravel. See available packages for installation and language-specific examples. This page demonstrates a first request with cURL or the PHP SDK.
# cURL is most likely already installed on your machine
curl --version
# Install the latest alpha of the Vatly PHP SDK
composer config minimum-stability alpha
composer config prefer-stable true
composer require vatly/vatly-api-php
Check out our list of first-party SDKs
Making your first API request
After picking your preferred client, you are ready to make your first call to the Vatly API. Below, you can see how to send a GET request to the Checkouts endpoint to get a list of all your checkouts. In the cURL example, results are limited to ten checkouts, the default page length for each client.
curl -G https://api.vatly.com/v1/checkouts \
-H "Authorization: Bearer test_your_api_key_here" \
-d limit=10
$vatly = new Vatly\Api\VatlyApiClient;
$vatly->setApiKey($key);
$vatly->checkouts->page();
Read the docs for the Checkouts endpoint
What's next?
Great, you're now set up with an API client and have made your first request to the API. Here are a few links that might be handy as you venture further into the Vatly API: