v1 — Online (sandbox open; live keys at onboarding)
Rider-side Partner API for airlines and airports: quotes, bookings, tracking, passenger–driver chat, and automatic flight notices. Open to airline and airport partners worldwide. Sample payloads are illustrative — no secrets, no live fares.
Teksi Ride (teksiride.com) is a ride-hailing app, currently live in South Africa (ZA, ZAR) and Zimbabwe (ZW, USD), with more countries being added. The Partner API is open to airlines, airports and travel partners anywhere in the world; rides can be booked in any country Teksi Ride operates in. This Partner API lets airline and airport systems create fare quotes and manage bookings on behalf of riders — passengers, crew, and VIP guests — without building their own dispatch stack.
Typical partner use cases:
| In scope | Quotes, bookings, cancel, tracking, passenger–driver chat, flight notices, service areas, partner webhooks, partner billing |
| Out of scope | Driver apps, driver onboarding, driver payouts, dispatcher tools, rider consumer auth |
| Markets | Open to partners worldwide. Rides are currently available in ZA (South Africa) and ZW (Zimbabwe), with more countries added over time — check GET /service-areas for the live list. |
| Ride concepts | Immediate and scheduled bookings; airport transfers; shared / pool where offered in-market |
| Environment | Base URL | Purpose |
|---|---|---|
| Sandbox | https://teksi.teksiride.workers.dev/partner/sandbox/v1 | Integration testing with sandbox keys; simulated drivers, no real dispatch |
| Production | https://teksi.teksiride.workers.dev/partner/v1 | Live bookings through normal Teksi dispatch (live keys only) |
All paths below are relative to the environment base URL. JSON request and response bodies use Content-Type: application/json and UTF-8. Each environment has an unauthenticated health check at /health. Sandbox keys start with tsk_test_ and live keys with tsk_live_; a key only works on its own environment.
Each partner receives one or more API keys. Send the key as a Bearer token on every request:
Authorization: Bearer PARTNER_API_KEY_PLACEHOLDER
| Rate limit | 120 requests / minute / partner key |
| Quota headers | X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset |
| Idempotency | Send Idempotency-Key (UUID) on POST /quotes and POST /bookings |
Replaying the same Idempotency-Key with the same body within 24 hours returns the original result without creating a duplicate booking. A conflicting body with a reused key returns 409 idempotency_conflict.
All samples use placeholder data — not live Teksi fares or credentials.
Fare estimate before booking.
Sample request
{"country":"ZA","ride_type":"airport","pickup":{"lat":-26.1332,"lng":28.2420,"terminal":"A","label":"OR Tambo Intl — Terminal A"},"dropoff":{"lat":-26.2041,"lng":28.0473,"label":"Sandton City"},"scheduled_at":null,"passengers":1}
Sample response
{"quote_id":"qte_01JPLACEHOLDER","currency":"ZAR","amount_total":450.00,"amount_excl_vat":391.30,"vat":58.70,"distance_km":28.4,"duration_min":35,"expires_at":"2026-11-09T08:15:00+02:00","ride_type":"airport","country":"ZA"}
Supported ride_type values: adhoc, airport, and shared (pool) where available in that country.
Create an immediate or scheduled ride for a passenger/crew rider.
Sample request
{"quote_id":"qte_01JPLACEHOLDER","country":"ZA","ride_type":"airport","pickup":{"lat":-26.1332,"lng":28.2420,"terminal":"A","label":"OR Tambo Intl — Terminal A"},"dropoff":{"lat":-26.2041,"lng":28.0473,"label":"Sandton City"},"scheduled_at":"2026-11-09T14:30:00+02:00","flight":{"number":"SA123","airline_code":"SA","scheduled_arrival":"2026-11-09T14:10:00+02:00"},"passenger":{"name":"Alex Passenger","phone":"+27000000000","email":"passenger@example.com"},"payment_mode":"partner_account","partner_reference":"PNR-ABC123","notes":"Meet at arrivals — name board"}
Sample response
{"booking_id":"bkg_01JPLACEHOLDER","status":"confirmed","currency":"ZAR","amount_total":450.00,"scheduled_at":"2026-11-09T14:30:00+02:00","payment_mode":"partner_account","partner_reference":"PNR-ABC123","tracking_url":"https://teksiride.com/t/PLACEHOLDER"}
payment_mode: partner_account or passenger_pays. Omit scheduled_at for immediate dispatch.
Retrieve booking status and details.
Sample response
{"booking_id":"bkg_01JPLACEHOLDER","status":"driver_assigned","country":"ZA","ride_type":"airport","pickup":{"lat":-26.1332,"lng":28.2420,"terminal":"A"},"dropoff":{"lat":-26.2041,"lng":28.0473},"scheduled_at":"2026-11-09T14:30:00+02:00","flight":{"number":"SA123","status":"on_time"},"passenger":{"name":"Alex Passenger","phone":"+27000000000"},"vehicle":{"category":"airport","label":"Assigned vehicle","plate_masked":"CA •••• 123"},"driver_display":{"name":"Jordan D.","rating":4.9},"amount_total":450.00,"currency":"ZAR","payment_mode":"partner_account"}
driver_display and masked plate are rider-facing presentation fields. Partners cannot list, assign, or manage drivers through this API.
Update pickup time and/or flight details before trip start.
Sample request
{"scheduled_at":"2026-11-09T15:05:00+02:00","flight":{"number":"SA123","scheduled_arrival":"2026-11-09T14:45:00+02:00","delay_minutes":35}}
Sample response
{"booking_id":"bkg_01JPLACEHOLDER","status":"driver_assigned","scheduled_at":"2026-11-09T15:05:00+02:00","flight":{"number":"SA123","status":"delayed","delay_minutes":35},"updated_at":"2026-11-09T13:40:00+02:00"}
When scheduled_at changes and a driver is already assigned, the platform notifies that assigned driver of the new pickup time only (no reassignment).
Cancel a booking on behalf of the rider.
Sample request
{"reason":"flight_cancelled","note":"Inbound flight cancelled by carrier"}
Sample response
{"booking_id":"bkg_01JPLACEHOLDER","status":"cancelled","cancelled_at":"2026-11-09T13:42:00+02:00","cancellation_fee":0,"currency":"ZAR"}
Rider-view live location and ETA for an assigned trip.
Sample response
{"booking_id":"bkg_01JPLACEHOLDER","status":"driver_assigned","eta_minutes":12,"driver_location":{"lat":-26.1501,"lng":28.2104,"updated_at":"2026-11-09T14:18:00+02:00"},"pickup":{"lat":-26.1332,"lng":28.2420,"terminal":"A"}}
Available after driver_assigned until completed or cancelled. Trip-scoped rider tracking only.
List supported airports, terminals, and operating countries. Query example: GET /service-areas?country=ZA
Sample response
{"countries":[{"code":"ZA","currency":"ZAR","active":true},{"code":"ZW","currency":"USD","active":true}],"airports":[{"code":"JNB","name":"O.R. Tambo International","country":"ZA","terminals":["A","B"],"active":true},{"code":"CPT","name":"Cape Town International","country":"ZA","terminals":["1"],"active":true},{"code":"HRE","name":"Robert Gabriel Mugabe International","country":"ZW","terminals":["1"],"active":true}]}
Passenger–driver chat for an active booking (partner sends on behalf of the passenger).
Sample POST body
{"body":"I am at arrivals — Terminal A"}
Sample POST response
{"message_id":"msg_01JPLACEHOLDER","booking_id":"bkg_01JPLACEHOLDER","sender":"passenger","body":"I am at arrivals — Terminal A","created_at":"2026-11-09T14:20:00+02:00"}
Allowed from driver_assigned through completed. Messages sanitized and capped (maximum 500 characters). Driver replies arrive as webhook message.received.
Register or inspect the partner HTTPS callback URL and event subscriptions. Webhook secret is shown on register/replace (store securely).
Sandbox only: simulates a flight status (delayed, landed or departed) so you can test the driver notices and webhooks. In production this returns 501, because flight changes are sent with PATCH /bookings/{id}.
Partners can relay short messages to the assigned driver on behalf of the passenger, and read the thread for that booking. Booking-scoped rider chat only.
POST /bookings/{id}/messages — send as passengerGET /bookings/{id}/messages — list threadsendRiderMessage, listMessagesmessage.receivedPartners may attach a flight number and scheduled arrival when creating or updating a booking. In sandbox, POST /bookings/:id/flight-sync uses a mock feed. In production, flight-sync returns 501 flight_data_not_configured; partners move pickups with PATCH scheduled_at, and the assigned driver is told the new time.
flight.delayed, flight.landed, or flight.departed. On delay, pickup time is also adjusted and only the assigned driver is updated — no reassignment, no automatic fare change.
Partners register an HTTPS callback URL. Teksi POSTs JSON event payloads when a booking progresses.
| Event | When it fires |
|---|---|
booking.confirmed | Booking accepted and awaiting dispatch / schedule |
driver.assigned | A driver is assigned to the booking |
driver.arrived | Assigned driver marked arrived at pickup |
trip.started | Trip in progress |
trip.completed | Trip completed; final amounts available |
booking.cancelled | Booking cancelled by partner, rider, or system |
message.received | Driver replied on the booking chat thread |
flight.delayed | Flight adapter reported a delay (pickup may be adjusted) |
flight.landed | Flight adapter reported landed |
flight.departed | Flight adapter reported departed |
Sample webhook payload
{"id":"evt_01JPLACEHOLDER","type":"driver.assigned","created_at":"2026-11-09T14:05:00+02:00","data":{"booking_id":"bkg_01JPLACEHOLDER","status":"driver_assigned","eta_minutes":18,"partner_reference":"PNR-ABC123"}}
Each delivery includes header X-Teksi-Signature: t=TIMESTAMP,v1=HMAC_SHA256_HEX where the signed string is TIMESTAMP + "." + raw_body and the key is the partner webhook secret. Reject if the timestamp is older than 5 minutes or the HMAC does not match.
Failed deliveries (non-2xx or timeout) are retried up to 5 times, after 1 minute, 5 minutes, 15 minutes, 1 hour and 6 hours. Partners should treat events as at-least-once and dedupe on id.
Flow: confirmed → driver_assigned → driver_arrived → in_progress → completed. Cancel may occur from confirmed / assigned / arrived (dashed transitions).
| Status | Meaning |
|---|---|
confirmed | Booking created; waiting for schedule or dispatch |
driver_assigned | Driver assigned; tracking may begin |
driver_arrived | Driver at pickup |
in_progress | Trip underway |
completed | Trip finished |
cancelled | Booking cancelled; terminal state |
Errors return a consistent JSON body:
{"error":{"code":"invalid_request","message":"pickup.terminal is required for airport ride_type","request_id":"req_01JPLACEHOLDER"}}
| HTTP | code | When |
|---|---|---|
| 400 | invalid_request | Validation failed |
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | Key not allowed for this action or IP |
| 404 | not_found | Unknown booking or quote |
| 409 | conflict | Illegal status transition |
| 409 | idempotency_conflict | Same Idempotency-Key, different body |
| 422 | unprocessable | Quote expired or outside service area |
| 429 | rate_limited | Partner rate limit exceeded |
| 500 | internal_error | Unexpected server fault |
| 503 | unavailable | Temporary outage; retry with backoff |
When payment_mode is partner_account, completed trips accrue to the partner’s corporate ledger. Invoicing cadence, currency per country (for example ZAR in South Africa and USD in Zimbabwe), and dispute windows are set in the commercial agreement.
partner_reference (e.g. PNR or crew roster id) appears on invoice line items where providedPartners must process passenger personal information in line with applicable law, including POPIA (Protection of Personal Information Act) for South Africa, Zimbabwe’s data-protection requirements, and the data-protection laws of the partner’s own country (such as the GDPR) where they apply. Collect only what is needed to fulfil the transfer. Do not use Teksi rider data for unrelated marketing without a lawful basis and Teksi’s written agreement.
Webhook endpoints must use HTTPS. Retain booking data only as long as required for operations, compliance, and the partner agreement.
| Current version | v1 |
| URL policy | Major version in path (/partner/v1); breaking changes require a new major version |
| Compatibility | Additive fields may appear in minor revisions without a path change |
| Partner integrations | partners@teksiride.com |
| Technical support | partners@teksiride.com |
| Onboarding | Request access at partners@teksiride.com. Sandbox keys are issued once an NDA is signed (immediately if one is already in place). Live keys are issued after onboarding and a signed commercial agreement. |