Skip to the content
YallaRoute

Help · Developers: API keys and webhooks

Make your first API request

The base address is the address you open the console at, followed by /api/v1, and the Developers screen shows it with a copy button. A GET request to the base address needs no key and answers with the version, the limits and every endpoint. Then send GET /api/v1/shipments with your key in the Authorization header.

Updated

Where
Your terminal or your own system; Console, Developers for the base address and the request console
Who can do it
Developers
Plans
REST API is included in Growth, Scale and Enterprise

In detail

Every company uses the same base address. The key decides which company a request belongs to, so the address never needs to change between workspaces.

Step by step

  1. Keep the key in an environment variable so that it never ends up in your shell history or your code.
  2. Call the index with no key. It answers with the API's name, its version, how to authenticate, the limits in force and one line per endpoint with the scope it needs.
  3. List your five most recent shipments with the key.
  4. Read one shipment by its tracking number to see its full timeline.
Three requests to start withbash
export API_BASE="https://<the address you open the console at>/api/v1"
export API_KEY="ks_live_..."   # from Developers, kept out of your code

# 1. no key needed: version, limits and endpoints
curl "$API_BASE"

# 2. your latest shipments
curl "$API_BASE/shipments?limit=5" -H "Authorization: Bearer $API_KEY"

# 3. one shipment, with its events and proof of delivery
curl "$API_BASE/shipments/<tracking number>" -H "Authorization: Bearer $API_KEY"

What comes back

Every successful answer has the same two parts: data, holding what you asked for, and meta, holding at least generated_at, the time the answer was made. Errors have one part, error, with a code your program can branch on and a message for people. Every answer carries a YallaRoute-Version header with the API version, currently 2026-12-01.

Paging through lists

Lists are returned a page at a time. Ask for up to 100 per page with limit. While there are more, meta.has_more is true and meta.next_cursor holds a cursor: send it back as cursor to get the next page. A cursor is valid for 15 minutes, and every page of one listing is pinned to the moment in meta.as_of, so shipments booked while you page do not shift the results.

Trying requests in the console

The Developers screen has a request console with ready-made examples for each endpoint. Paste a key into it to try calls against your own data; the key is kept in memory only until you reload the page. Bookings and cancellations made there are real.

Try it in your own workspace

A new workspace has the Scale features for its first 14 days. Open one and follow this article with your own data.