Getting started
From invitation to your first Data API call.
1. Your account
BeMyPlan creates your company's account and emails the account Owner an invitation that names it. Accepting the invitation means setting a password and accepting the Terms of Service and Privacy Policy in the portal. Two-factor authentication is optional unless your Owner requires it for the team.
The Owner or an Admin invites colleagues with a role: Owner, Admin, Developer or Viewer.
2. Start in the sandbox
The sandbox portal is https://portal.sandbox.bemyplan.com. It is separate from production
(https://portal.bemyplan.com): BeMyPlan creates your sandbox account separately, you receive a separate
invitation whose subject starts with [Sandbox], and you set a separate password. A sandbox account is
normally given 10,000 free credits.
Ask your BeMyPlan contact if you have not received the sandbox invitation.
3. Create a key
In the sandbox portal open API keys and choose Create API key:
- Give the key a name.
- Pick the preset Data only (scope
data:read). - Optionally restrict the key to your servers' IP addresses.
- Copy the secret. It is shown once.
Sandbox keys start with bmp_test_.
4. Make your first call
curl "https://api.sandbox.bemyplan.com/data/v1/airports?iataCode=AMS" \
-H "Authorization: Bearer bmp_test_…"The response. The ids are derived from the airport and city codes, so they are the same in the sandbox and in production; the values come from the reference data and can change as it is updated:
{
"data": [
{
"id": "arp_iwqeawwufxb4h5qa",
"iataCode": "AMS",
"icaoCode": "EHAM",
"name": "Amsterdam Airport Schiphol",
"cityId": "cit_letxal4ojx3tujmz",
"iataCityCode": "AMS",
"iataCountryCode": "NL",
"latitude": 52.3086,
"longitude": 4.7639,
"timeZone": "Europe/Amsterdam",
"type": "large_airport",
"active": true
}
],
"meta": {
"requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",
"limit": 50,
"after": null,
"before": null
}
}data holds the airports found. meta carries the requestId (quote it to support), the limit in
effect and the pagination cursors after and before.
5. Next
- Errors, Pagination, Rate limits and Postman.
- Going live: production keys (
bmp_live_) can be created once BeMyPlan has switched your account live. Until then the production portal tells you so.