Developers
One server for every store. A member signs in, and the connection can do what that member can do, no more.
https://api.handoff.store/mcpAuthorization: Bearer header.Using an AI assistant? You don’t need the rest of this page to connect: follow a guide under Connect an AI. This page is for people building their own client or wanting to know exactly what a connection can do.
Most MCP clients do all of this for you. If you are writing your own, the server follows the standard discovery chain, so nothing needs to be hard-coded but the server address.
401 with a WWW-Authenticate header that points at the protected-resource metadata, which names the authorization server. Read the authorization server’s metadata for every endpoint below.registration_endpoint in the metadata) or a Client ID Metadata Document. Redirect addresses must be exact HTTPS addresses, with no wildcards. A desktop or command-line client that registers as a public client may use a loopback address (http://localhost or http://127.0.0.1) on any port.S256; it is required). Send resource set to the server address, exactly as written above, and the scopes you need.code_verifier and the same resource.| Document | Address |
|---|---|
| Protected-resource metadata | https://api.handoff.store/.well-known/oauth-protected-resource/mcp |
| Authorization-server metadata | https://api.handoff.store/.well-known/oauth-authorization-server/oauth |
| Issuer | https://api.handoff.store/oauth |
POST <registration_endpoint from the metadata>
Content-Type: application/json
{
"client_name": "My app",
"redirect_uris": ["https://my-app.example/oauth/callback"],
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"token_endpoint_auth_method": "none"
}offline_access scope to get a refresh token. Without it there is none, and the member signs in again when the access token runs out.Active members of a Hand-Off organization: owners and staff. Shoppers can’t. A member can disconnect an app at any time under Connected apps in the dashboard, and the token stops working at once.
A scope is a Hand-Off permission, with the same name the dashboard’s staff permissions use. A tool runs only when both are true: the token was granted the tool’s scopes, and the member still holds those permissions in that store right now. Both are checked on every call, so taking a permission away from a staff member takes it away from their connections too.
You don’t need to ask for everything up front. When a call needs a scope the token lacks, the result carries an OAuth challenge naming exactly the missing scopes, and the client can send the member back to approve them.
Call get_connection_context first. It returns the member, and the organizations and stores this connection can use. Almost every other tool takes an organizationId and a storeId from that answer; a few organization-wide tools take only organizationId.
Amounts of money are whole cents.
operationId: a UUID you make up for that one change. Send the same operationId with the same arguments again and you get the same result back, without the change being made twice. That makes a retry after a timeout safe. Hand-Off remembers an operation for 24 hours.operationId with different arguments is refused with CONFLICT.expectedUpdatedAt: the updatedAt you last read. If someone changed the record since, the call is refused with CONFLICT and nothing is written. Read again and decide.Every tool has one class, and the class decides what happens when a connected app calls it.
| Class | Examples | From a connected app |
|---|---|---|
| Read | Search orders, read a product | Runs right away |
| Edit | Change a product’s description, add a page section | Runs right away, and can be undone in Hand-Off |
| Destructive | Delete a customer, take a storefront offline | Waits for an owner to approve |
| Money | Change a price, buy a shipping label, refund | Waits for an owner to approve |
| Messages customers | Send a campaign, change an order status that emails the customer | Waits for an owner to approve |
| Account | Change who has access or where payouts go | Not available to connected apps |
A call that needs approval is not an error. It returns right away with a result like this, and the owners are notified:
{
"status": "APPROVAL_REQUIRED",
"approvalId": "…",
"approveUrl": "https://…",
"expiresAt": "2026-12-02T15:04:05.000Z"
}operationId and arguments. While it waits you get the same approval back; afterwards you get the saved result, or a status of DENIED, EXPIRED or FAILED_STALE (the record changed before the owner answered).ACTION_SWITCHED_OFF or SWITCHED_OFF.The assistant’s own “are you sure?” prompt and Hand-Off’s approval are separate. Whatever a client lets through, Hand-Off still holds destructive, money and customer-message changes for an owner.
A tool that fails returns a normal MCP tool result with isError: true and a structured error:
{
"isError": true,
"structuredContent": {
"error": { "code": "CONFLICT", "message": "…", "retryable": false }
}
}| Code | What it means | What to do |
|---|---|---|
INSUFFICIENT_SCOPE | The token wasn’t granted a scope the tool needs. | Follow the OAuth challenge in the result to ask the member for it. |
MISSING_PERMISSION | The member doesn’t hold the permission in that store. | An owner grants it in the dashboard’s staff settings. |
INVALID_INPUT | The arguments don’t match the tool’s input schema. | Fix the arguments; the message names the field. |
CONFLICT | The record changed since you read it, or the operationId was reused with different arguments. | Read again, then retry with a new operationId. |
SUBSCRIPTION_FEATURE_REQUIRED | The store’s plan doesn’t include the feature. | Tell the member; the plan is changed in the dashboard. |
ACCOUNT_ACTION_NOT_ALLOWED_HERE | An account-class tool was called from a connected app. | The member does it in the dashboard. |
ACTION_SWITCHED_OFF | The store switched this action off. | An owner switches it back on in the dashboard. |
SWITCHED_OFF | Connected apps, or the assistant features, are switched off for this store. | Try later, or ask the owner. |
TOO_MANY_PENDING_APPROVALS | Too many requests are already waiting for an owner. | Wait for the owner to answer the ones open. |
UNKNOWN_TOOL | No tool has that name. | List the tools again; the catalog may have changed. |
INTERNAL_ERROR | Something failed on Hand-Off’s side. | Retry with the same operationId. |
Tools can also return codes of their own, such as a refused web address or an invalid price. The message says what was wrong.
Prompts are ready-made jobs from Hand-Off’s capability library, such as a weekly sales review. A client that supports MCP prompts shows them to the member.
Hand-Off adds tools often. Tool names and input fields are a public contract: fields are added, not renamed or removed. Clients that keep a copy of the tool list should refresh it when the server’s version changes.