Getting started with the Zaptec API

Request Zaptec API access, authenticate your integration, make your first API call, and choose the right interface for charger data and control.

The Zaptec API lets you read data from and control Zaptec Go, Go 2 and Pro chargers. Data is organised as installations (sites), each containing one or more chargers.

1. Request a user group

API access goes through a user group with Owner or Service permissions. You can't create a user group yourself. The Zaptec country support team for your market creates it once your commercial agreements are in place, or while you finalise them with the Zaptec commercial and business development team.

Set up at least these users:

  • A service account, used only by your application to call the API
  • A technical support account for your own support staff
  • Users for the Zaptec Portal and app, plus any other admin accounts you need

Users don't need a Zaptec account in advance; they can be invited to the user group by email.

2. Get access to installations

Your user group can only see installations it has been granted access to. How you get that access depends on who owns the installation:

SituationHow to get access
You install or manage the chargers yourself (installer, service partner)Your user group creates and manages the installations, using the Service role
Your customer owns the installations (building owners, fleets, portfolios)The owner grants access through the Third-party onboarding flow

To use the third-party onboarding flow:

  1. Find your lookup key on the Details tab of your user group in the Zaptec Portal.
  2. Build an access link in the format https://portal.zaptec.com/access/request/<lookup_key>, replacing <lookup_key> with your group's lookup key.
  3. Add the link to your app's onboarding flow so installation owners can grant access as part of signing up, or send it to them directly.
  4. The owner signs in to the Zaptec Portal and approves the request. Your user group then gets Owner and Service access to the whole installation.

For details of each role, see Roles and permissions.

Testing: Zaptec has no sandbox environment. Set up test chargers in your integrator test account instead.

3. Authenticate

Store your service account email and password in a secrets manager or environment variables, never in code. Before running the example, populate ZAPTEC_SERVICE_ACCOUNT_EMAIL and ZAPTEC_SERVICE_ACCOUNT_PASSWORD in your environment from your secure configuration.

Important: Include a descriptive User-Agent header on every API request.

Use the format Application-Name/Version, such as MyChargingApp/1.0. It lets us identify your integration, contact the right people about upcoming changes, and help you faster when you need support.

Update the version whenever you release a new version of your integration. Avoid generic HTTP library defaults such as python-requests/2.31 or okhttp/4.12. See the API Fair Use Policy.

Request an access token (a credential that authorises subsequent API requests) with your service account's credentials. Replace MyChargingApp/1.0 with your application name and version in both examples on this page.

curl --fail-with-body --show-error -X POST https://api.zaptec.com/oauth/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -H "User-Agent: MyChargingApp/1.0" \
  -d "grant_type=password" \
  --data-urlencode "username=$ZAPTEC_SERVICE_ACCOUNT_EMAIL" \
  --data-urlencode "password=$ZAPTEC_SERVICE_ACCOUNT_PASSWORD" \
  -d "scope=openid"

Expected result: A JSON response containing access_token, token_type, expires_in and scope. Store the token securely and use the returned expires_in value (in seconds) to track its lifetime. Reuse it until it's about to expire rather than requesting a new token for every call.

If the request fails, review the response body and check your service account credentials. The --fail-with-body option makes curl return a nonzero exit code for HTTP errors while keeping the error response visible. For authentication details, see Authentication.

Planned authentication change: The password grant is scheduled to be replaced by the OAuth 2.0 authorization code grant in 2027. No fixed date has been set yet.

4. Make your first call

Set the ACCESS_TOKEN environment variable to the access_token returned in step 3, using your secure configuration. List the installations your user group can access:

curl --fail-with-body --show-error https://api.zaptec.com/api/installation \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "User-Agent: MyChargingApp/1.0"

Expected result: Installation data for the installations your user group can access. If no installations appear, confirm that an installation owner has granted access to your user group. If the request fails, check the response body, token expiry and user group permissions. For rate-limit errors, follow step 6.

Find your installation and charger IDs

Installation and charger IDs are GUIDs (globally unique identifiers). You can find them through the API or in the Portal:

  • Through the API: List installations, then call installation hierarchy to get an installation's chargers.
  • In the Portal: Use the copy buttons on the installation and charger details pages, as shown below.

Installation ID

Open the installation in the Zaptec Portal, go to Settings > Details, and select Copy installation ID.

Installation details in the Zaptec Portal showing the Copy installation ID button

Charger ID

Select a charger from the installation's Circuit page. Open its details and select Copy charger ID.

Charger details in the Zaptec Portal showing the Copy charger ID button

5. Choose the right interface

Match the interface to the job. Don't poll the REST API for live data.

You want to…UseReference
Monitor charger and installation state in near real timeService Bus message subscriptions (ask Zaptec Support to activate these for your user group)Service Bus subscriptions, State observations
Report energy and session historyREST: archived sessions and the usage reportArchived sessions, Usage report
Read a charger's current state on demandREST: charger stateCharger state
Start, stop, pause or resume chargingREST: send commandSend command, Pause and resume behaviour
Peak shaving, flexibility or load managementREST: update the installation's available currentDynamic load balancing, Load balancing FAQ
Solar charging (Go, Go 2)REST and Service BusSolar integration
Connect chargers to your own OCPP backendIntegrations APIOnboard a charger for OCPP

6. Design for limits

  • Rate limit: 10 requests per second per user, with a burst allowance of 15 requests. The token endpoint allows 1 request per second per IP address. Exceeding the limit returns 429 Too Many Requests with Retry-After: 1. Wait at least the time specified by Retry-After, then retry with exponential backoff (increasing delays between retries) and jitter (a small random delay).
  • Current changes: Change an installation's available current no more than once a minute.
  • Paging: The maximum page size is 100 records; paginate larger result sets.
  • Caching: Cache data that rarely changes, such as charger specifications.

Read the API usage guidelines, Fair use policy and Rate limiting before you go live.

7. Get help

Updates and breaking changes

Important: Stay informed about updates and breaking changes.

Subscribe to the Zaptec status page or check the API changelog announcements regularly.


Did this page help you?