This page shows how to make your first API request with cURL.
Before you begin, make sure you have:
- A valid API key
- HTTPS access to the API
- A terminal with
curl available
If you still need a key, see API Keys.
Your first request
Store your API key in an environment variable:
Then send a request to the /v1/me endpoint:
This endpoint returns information about the authenticated reseller account.
Example response
If the request succeeds, the response will look similar to this:
Here is what the response fields mean:
credits: the number of credits currently available on your account
lines_count: the total number of lines linked to your account
server_information: connection details related to your reseller service
Common issues
If the request fails, check the following first:
- Your
x-api-key header is present
- Your API key value is correct and complete
- The request is being sent over HTTPS
- The API key is still active
If authentication fails, the API will usually return a 401 Unauthorized
response. For more details, see Authentication and
Error Handling.
Next steps
- Explore Protocol to understand request and response rules
- Review the endpoint reference to start creating and managing lines
- Use the same
x-api-key header pattern for all authenticated requests
Last modified on May 22, 2026