Cross-operator access
Some integrations work with an operator they do not belong to. A fleet dispatches a restaurant group’s orders from its own system. A software vendor creates and tracks orders for several operators. A delivery company reads the orders it was hired to deliver.
Partner access covers these cases. The operator approves the partner in Dispatch. The partner then creates its own API v3 key, which works only for that operator and only within the permissions the operator approved.
This guide uses two example operators:
- Example Kitchen is the operator. It owns the orders.
- Example Courier Co is the partner. Its integration creates and reads orders for Example Kitchen.
How it works
Section titled “How it works”| Step | Who | What happens |
|---|---|---|
| 1 | First | Sends an access request with scopes and a reason |
| 2 | Example Kitchen (operator) | Approves or denies it in Dispatch |
| 3 | Example Courier Co (partner) | Creates a key in Dispatch |
| 4 | Example Courier Co | Calls API v3 with that key |
| 5 | Example Kitchen | Sees when the key is used and can turn it off |
The key carries the grant. The partner sends it like any other API v3 key, with no operator ID and no extra header, so it cannot be pointed at a different operator.
Each grant has a handle such as fgr_7d4e374c73d56fb08889af35. It appears in Dispatch, in emails, and in the operator’s order history. It is a reference, not a secret.
Request access
Section titled “Request access”Partner access starts with First. For Example Courier Co to call the API for Example Kitchen, email support@firstdelivery.com with:
- Example Kitchen as the operator that approves, and Example Courier Co as the partner that needs access;
- what Example Courier Co’s integration does (First shows this to Example Kitchen as the reason); and
- the endpoints it calls, so First requests the right permissions.
Access lasts one year unless First sets a different end date, such as the end of a contract.
Approve a request (operators)
Section titled “Approve a request (operators)”When the request arrives, every Example Kitchen admin with the Settings Access permission gets an email. Example Kitchen’s Dispatch shows a red banner until one of those admins decides:
The request also appears in the Action Center:
An Example Kitchen admin selects Review request to open Settings → Developers → Partner Access. The request shows that Example Courier Co is asking, why, when access would end, and what Example Courier Co could do:
Open Partner Access in Dispatch
To approve, that Example Kitchen admin:
- Selects Review and approve.
- Unticks any permission Example Courier Co should not have. Example Kitchen can remove more later. Adding one takes a new request from First.
- Ticks the authorization statement and selects Approve access.
To refuse, Example Kitchen selects Deny and adds a reason. First is told, and nothing changes for Example Kitchen. Dispatch reminds Example Kitchen after 3 and 7 days, and a request nobody decides expires after 14 days.
Manage access
Section titled “Manage access”Example Kitchen sees approved partners under Partners with access to your operator. Each entry shows who at Example Kitchen approved it, when it ends, its permissions, and when Example Courier Co’s key was last used. Example Kitchen gets an email the first time Example Courier Co uses its key.
- Remove permissions applies to Example Courier Co’s next call. Calls that need a removed permission return
403. - Turn off access stops every Example Courier Co key on the grant immediately. To restore access, Example Courier Co asks First for a new request.
Create and use the key (partners)
Section titled “Create and use the key (partners)”When Example Kitchen approves, every Example Courier Co admin with Settings Access gets an email, and Example Courier Co’s Action Center shows Create your partner access key. An Example Courier Co admin opens Settings → Developers → Partner Access. The grant is listed under Your access to other operators:
Example Courier Co selects Create key and copies the key into its secrets manager. It is shown once. First stores only a one-way hash, so neither First nor Example Kitchen ever sees the key.
Send it like any API v3 key:
Authorization: Bearer f1rst_k1_…Every request acts as Example Kitchen, the operator that approved the grant. Orders Example Courier Co creates belong to Example Kitchen, and GET /api/v3/orders returns Example Kitchen’s orders.
Confirm which operator a key acts for
Section titled “Confirm which operator a key acts for”With the account:read scope, GET /api/me returns the operator the key acts for and the grant behind it:
curl https://api.firstdelivery.com/api/me \ -H "Authorization: Bearer $EXAMPLE_KITCHEN_PARTNER_KEY"{ "operator": { "id": 2, "name": "Example Kitchen", "country": "usa", "billing_verified": true }, "grant": { "id": "8b8f8f2e-1d55-4c4e-9a43-5d0e64b0a6a1", "owner_operator_id": 3, "scopes": [ "orders:read", "orders:write", "quotes:create", "account:read" ] }}operator is Example Kitchen, the operator the key acts for. grant.owner_operator_id is Example Courier Co, which owns the key.
Several operators
Section titled “Several operators”Each grant has its own keys, so an integration that serves several operators holds one key per operator. Example Courier Co stores each key against the operator.id that GET /api/me returns, and uses the key for the operator each request is about. A leaked key exposes only one operator.
A grant can have two active keys, so Example Courier Co can rotate without downtime: create the second key, deploy it, confirm its last used time changes in Example Kitchen’s Dispatch, then revoke the first.
Grant keys are listed only under Partner Access, not under API Keys. The grant sets their permissions, so Example Courier Co cannot edit them.
Permissions
Section titled “Permissions”A grant can include any API v3 scope. The operator sees the plain-language description of each one when approving, and can untick any it does not want to share.
| Scope | The partner can |
|---|---|
orders:read |
See all of the operator’s orders, including customer names, addresses, and phone numbers |
orders:write |
Create, update, and cancel orders for the operator |
quotes:create |
Request delivery quotes for the operator |
merchants:read |
See the operator’s merchants and their addresses |
merchants:write |
Create and change the operator’s merchants |
shifts:read |
See the operator’s courier shifts |
shifts:write |
Create and change the operator’s courier shifts |
webhooks:read |
See where the operator’s webhooks send events |
webhooks:write |
Add and change the operator’s webhooks, including where its order events go |
territories:read |
See the operator’s territories and their settings |
territories:write |
Change the operator’s territories and their settings |
strategies:read |
See the operator’s dispatch strategies |
strategies:write |
Change the operator’s dispatch strategies |
refunds:read |
See refunds on the operator’s orders |
refunds:write |
Create and change refunds on the operator’s orders |
reports:read |
Create and download exports of the operator’s orders |
cohorts:read |
See the cohorts in the operator’s territories |
runners:write |
Create couriers on the operator |
account:read |
See the operator’s name and ID (GET /api/me) |
Each endpoint’s page in the API v3 reference lists its required scope.
Lifecycle and errors
Section titled “Lifecycle and errors”| Event | Effect on the partner’s key | Who is told |
|---|---|---|
| Request waiting for approval | No key yet | Operator, with reminders |
| Approved | The partner can create keys | Partner |
| Permissions removed | Calls that need them return 403 |
Partner |
| 14 and 3 days before the end date | Still works | Both |
| End date reached | Returns 401 |
Both |
| Turned off by the operator or First | Returns 401 immediately |
Both |
| Either operator suspended by First | Returns 401 until the operator is restored |
— |
| Response | Meaning | What to do |
|---|---|---|
401 with an empty body |
The grant ended or was turned off, or an operator is suspended | Check Partner Access in Dispatch. Ask First for a new request if access should continue. |
403 API client requires scope: … |
The grant does not include that scope | Ask First to request it. The operator approves the change. |
403 API clients cannot access this endpoint |
The endpoint is not open to API v3 keys | Email support@firstdelivery.com with the method and path. |
What the operator can see
Section titled “What the operator can see”Every request made with a partner key is recorded against the grant. In the operator’s order history, the request that created an order shows Partner access with the grant handle, the partner’s name, and who approved it. See Debugging for the request provenance card.
Replacing a shared key
Section titled “Replacing a shared key”If Example Courier Co calls the API with a key or sign-in token that belongs to Example Kitchen, First asks Example Kitchen to approve partner access. Example Kitchen or First may have given Example Courier Co the credential, and it may be a legacy key that does not start with f1rst_k1_.
- First sends the access request to Example Kitchen, with the permissions Example Courier Co’s integration uses today.
- After Example Kitchen approves, Example Courier Co creates its key under Partner Access.
- Example Courier Co replaces the shared credential in its integration. The base URL and request bodies stay the same. If it still calls an older endpoint, it moves to the API v3 equivalent.
- Example Courier Co deploys everywhere the shared credential is used, including scheduled jobs.
First retires the shared credential once it has gone unused for 7 days. Example Courier Co does not need to tell anyone. Responses to a legacy key include a Deprecation header, and a Sunset header once First sets a retirement date. See Moving from a legacy key for the timeline.
Common questions
Section titled “Common questions”Can one key work for several operators? No. Each key works for the one operator that approved its grant.
Can First see or recover the key? No. First stores only a one-way hash. If Example Courier Co loses the key, it creates another under the same grant.
Do I need partner access for operators in my org? No. Operators in your org use their own keys. See Orgs and operators.
Can the operator add permissions without First? No. The operator can remove permissions or turn access off at any time. Adding a permission starts a new request from First, which the operator approves again.

