developer guide · pilot
Integrating Anchor
Base URL https://www.getanchor.id (always use www; the bare domain redirects). Every call below runs on your backend unless marked "browser". Never ship your client secret to a browser, app or agent.
1. Setup & credentials
Get your client_id and client_secret instantly from your Anchor workspace (business owners at /business, invited developers at /developer). The secret is shown once. Add your exact return URLs there; wildcards aren't accepted. New apps start in test mode: only the owner and invited developers can connect until Anchor reviews the app. Partner calls authenticate with HTTP Basic client_id:client_secret.
Verify with Anchor
Users connect their Anchor; you learn they're a verified human and get their profile link. Sections 2–4.
Action approvals (optional)
Before a payout or account change, the user approves that exact action with Face ID. Section 6.
2. Connect a profile (OAuth authorization code + PKCE)
browser redirect · then your backend
Send the user to Anchor. New users can create an Anchor first; nothing is shared until they consent.
GET https://www.getanchor.id/connect
?client_id=YOUR_CLIENT_ID
&redirect_uri=https://yourapp.com/anchor/callback
&state=RANDOM_PER_ATTEMPT
&code_challenge=BASE64URL(SHA256(code_verifier))
&code_challenge_method=S256
&scope=verified_human id_checked connected_accountsScopes: verified_human (always included), id_checked, connected_accounts. If your policy needs an ID check and the person hasn't done one, Anchor guides them through an encrypted hosted ID check and returns them to the consent screen. Check state on return, then exchange the single-use code:
curl -X POST https://www.getanchor.id/api/public/partner/token \
-H 'content-type: application/json' \
-d '{"grant_type":"authorization_code","client_id":"YOUR_CLIENT_ID",
"client_secret":"YOUR_SECRET","code":"CODE_FROM_CALLBACK",
"code_verifier":"ORIGINAL_VERIFIER",
"redirect_uri":"https://yourapp.com/anchor/callback"}'3. Read profile & ID status
your backend
curl https://www.getanchor.id/api/public/partner/userinfo \
-H 'authorization: Bearer ACCESS_TOKEN'
{ "sub": "sub_…", // pairwise: differs per partner
"verified_human": true,
"published": true,
"checks": { "identity": true, "liveness": true }, // only with id_checked
"profile": { "anchor_url": "https://getanchor.id/a/…" } }You receive derived results only, never ID images, document numbers or a legal name. sub is stable for your app and different for every other partner.
Show the verified badge
browser · your listing or profile page
Put this next to the person's name wherever buyers or matches see them. It opens into a small proof card, and the button always goes to their real Anchor profile (anchor_url from step 3). Only show it when verified_human is true. Try it:
sample listing
Rolex Submariner 126610LN · $14,850
see the code
<!-- Anchor verified badge. Replace NAME, USERNAME and ANCHOR_URL with the values from /userinfo. -->
<details class="anchor-badge">
<summary><span class="anchor-dot"></span>verified human · anchor</summary>
<div class="anchor-card">
<strong>NAME</strong> <span class="anchor-muted">@USERNAME</span>
<p class="anchor-ok">✓ Government ID + 3D selfie verified</p>
<p class="anchor-muted">ID documents and selfies are never shared.</p>
<a href="ANCHOR_URL" target="_blank" rel="noopener">View their Anchor proof →</a>
</div>
</details>
<style>
.anchor-badge{position:relative;display:inline-block;font:500 13px/1.4 system-ui,sans-serif}
.anchor-badge summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid #d6e9f5;border-radius:999px;background:#f2f9fd;color:#1a1d21}
.anchor-badge summary::-webkit-details-marker{display:none}
.anchor-dot{width:7px;height:7px;border-radius:50%;background:#16a34a}
.anchor-card{position:absolute;z-index:20;top:calc(100% + 6px);left:0;width:260px;padding:14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.anchor-card p{margin:6px 0}
.anchor-ok{color:#16a34a}
.anchor-muted{color:#6b7280;font-size:12px}
.anchor-card a{display:block;margin-top:10px;color:#1a1d21;font-weight:600;text-decoration:none}
</style>see the code
// Anchor verified badge for React. Pass the values you saved from /userinfo.
import { useState } from "react";
export function AnchorBadge({ name, username, anchorUrl }) {
const [open, setOpen] = useState(false);
return (
<span style={{ position: "relative", display: "inline-block", font: "500 13px/1.4 system-ui, sans-serif" }}>
<button onClick={() => setOpen(!open)} aria-expanded={open}
style={{ display: "inline-flex", alignItems: "center", gap: 6, padding: "4px 10px", borderRadius: 999,
border: "1px solid #d6e9f5", background: "#f2f9fd", color: "#1a1d21", cursor: "pointer" }}>
<span style={{ width: 7, height: 7, borderRadius: "50%", background: "#16a34a" }} />
verified human · anchor
</button>
{open && (
<span style={{ position: "absolute", zIndex: 20, top: "calc(100% + 6px)", left: 0, width: 260, padding: 14,
border: "1px solid #e5e7eb", borderRadius: 12, background: "#fff", boxShadow: "0 8px 24px rgba(0,0,0,.08)", display: "block" }}>
<strong>{name}</strong> <span style={{ color: "#6b7280", fontSize: 12 }}>@{username}</span>
<span style={{ display: "block", margin: "6px 0", color: "#16a34a" }}>✓ Government ID + 3D selfie verified</span>
<span style={{ display: "block", color: "#6b7280", fontSize: 12 }}>ID documents and selfies are never shared.</span>
<a href={anchorUrl} target="_blank" rel="noopener noreferrer"
style={{ display: "block", marginTop: 10, color: "#1a1d21", fontWeight: 600, textDecoration: "none" }}>
View their Anchor proof →
</a>
</span>
)}
</span>
);
}4. Disconnection
People disconnect your app from their Anchor dashboard. After that, userinfo returns 401 invalid_token. Treat that as "no longer connected". There's no partner-side disconnect endpoint yet. Ask the person to disconnect from Anchor, or just stop using the token.
5. Verify connected-agent requests
agent → your API · your backend → Anchor
A supported agent gets an Anchor token bound to its own key (DPoP, RFC 9449) and to your app only. It calls your API with Authorization: DPoP <token> and a fresh DPoP proof header. On every request, your backend asks Anchor, using your own credentials. Don't forward the token anywhere else.
curl -X POST https://www.getanchor.id/api/public/agent/introspect \
-u YOUR_CLIENT_ID:YOUR_SECRET -H 'content-type: application/json' \
-d '{"token":"TOKEN_FROM_AGENT","dpop":"DPOP_HEADER_FROM_AGENT",
"htm":"POST","htu":"https://yourapp.com/api/bookings"}'
{ "active": true, "sub": "sub_…", "permissions": ["search_listings","request_booking_approval"],
"verified_human": true, "agent": { "name": "…", "scripted_test_client": true },
"grant_expires_at": "…", "proof": "dpop_key_possession" }Then apply your own permissions to permissions. Inactive responses look like {"active":false,"reason":"…"}. A valid result proves the caller holds the key the person approved for that account. It doesn't prove which AI model is calling, whether it can be trusted, or that a person is present right now.
6. Exact-action approvals
your backend · person approves on Anchor
Create a request for one immutable action:
curl -X POST https://www.getanchor.id/api/public/v1/approval-requests \
-u YOUR_CLIENT_ID:YOUR_SECRET -H 'content-type: application/json' \
-d '{"partner_reference":"tx_123","idempotency_key":"tx_123",
"action_type":"booking",
"action":{"listing_id":"lst_1","check_in":"2026-11-13","check_out":"2026-11-16","guests":2,"total_minor":48000,"currency":"GBP"},
"summary":"Book Sunny loft, 13–16 Nov, 2 guests",
"total_minor":48000,"currency":"GBP",
"cancellation_terms":"Free cancellation up to 48h before check-in.",
"expires_in_seconds":900,
"confirmation_policy":"fresh_passkey",
"requested_claims":["verified_human"],
"intended_subject":"sub_…",
"return_url":"https://yourapp.com/bookings/tx_123"}'
→ 201 { "id":"…", "status":"pending", "review_url":"https://getanchor.id/approval/apr_…", "expires_at":"…" }Send the person to review_url. That link always works. If you set intended_subject and they've turned on device alerts, Anchor also sends a notice with no details. confirmation_policy is session (signed-in account) or fresh_passkey. With fresh_passkey, Anchor requires a new passkey check with on-device user verification. A passkey added after the request was made doesn't count. Neither do sessions or agent tokens.
# check
curl https://www.getanchor.id/api/public/v1/approval-requests/ID -u YOUR_CLIENT_ID:YOUR_SECRET
→ { "status":"approved", "approved_by":"sub_…", "auth_method":"fresh_passkey", "claims":{"verified_human":true} }
# consume exactly once — send the SAME action you created
curl -X POST https://www.getanchor.id/api/public/v1/approval-requests/ID/consume \
-u YOUR_CLIENT_ID:YOUR_SECRET -H 'content-type: application/json' \
-d '{"action":{…identical…},"consume_key":"tx_123"}'
# cancel while pending
curl -X POST https://www.getanchor.id/api/public/v1/approval-requests/ID/cancel -u YOUR_CLIENT_ID:YOUR_SECRETConsume is atomic: repeating it with the same consume_key returns the same result with "replayed": true, so retries never double-book. Statuses: pending, approved, declined, consumed, cancelled, revoked, expired. There's no API to approve. POST …/approve always returns 403 human_approval_required.
7. Failure responses
401 invalid_client bad or revoked credentials, or platform not approved
400 invalid_request body failed validation
400 invalid_grant code reused/expired, wrong verifier or redirect_uri
401 invalid_token userinfo token expired or person disconnected
400 unknown_subject intended_subject isn't connected to your app
400 invalid_return_url return_url origin not in your registered redirects
409 idempotency_conflict same idempotency_key, different action
409 action_mismatch consume action differs from what was approved
409 not_consumable status is not approved (body includes status)
403 human_approval_required there is no machine approval
429 rate_limited / too_many_pending
introspect {active:false, reason}: invalid_token, revoked, grant_expired, wrong_audience,
missing_proof, malformed_proof, invalid_signature, expired_proof, wrong_method,
wrong_recipient, token_not_bound, replayed_proof, wrong_key8. Compatibility & limits
- Pilot only. Tested with Anchor's own test partner and scripted test agent. No commercial AI assistant (for example ChatGPT) is integrated yet.
- Agent support needs an agent client registered with Anchor that can do OAuth with PKCE and DPoP (ES256). Generic browsing agents aren't recognised automatically.
- Web Bot Auth / HTTP message signatures (RFC 9421) identify a bot operator. They don't verify a human account or an action approval, and Anchor doesn't treat them as either.
- Passkey prompts use each device's normal passkey screen. It may be a fingerprint, face, PIN or another method. Anchor can't show a biometric prompt inside other websites or apps.
- Device alerts need a supported browser and notification permission. On iPhone, Anchor must be on the Home Screen. The review link is always the fallback.
- Linked accounts and passkeys confirm control of an Anchor account. They don't prove legal identity or one unique human unless your policy also requires an ID check.
- Anchor's own backend provider doesn't enrol that provider's other customers in Anchor.