proofsdocscomparepricinglog in

Documentation

Learn how to integrate Proof Holdings

How it works
The mental model in one page
API Reference
Complete API documentation
SDKs
Official client libraries
Smart Reuse
Skip re-verification with existing proofs
Multi-Profile System
Multiple public profiles per account
Message Templates
Custom branding and message templates per sub-account
Comparison
vs SMS OTP, TOTP, WebAuthn
Pricing
Plans and pricing tiers
Security
Threat model and guarantees
MCP Server
196 tools for AI agents
Integrations
n8n, Zapier, Make, and custom integrations
Proof of Me
Let the people around you check it's really you
Proof of Delegation
A proven domain authorizing an artifact, and how to verify or withdraw it
Sign in with Proof Holdings
OpenID Connect sign-in that shares verified email, phone and domains
Resources
GitHub Docs
Status

Sign in with Proof Holdings

An OpenID Connect provider: your users sign in with their Proof Holdings account and, with their consent, share the email, phone and domains they have verified with us, each with the date it was verified.


What you get

A "Sign in with Proof Holdings" button on your site that runs a standard OpenID Connect authorization code flow. After the user signs in and approves, you receive:

  • sub: a stable identifier for the user. It is the same every time this user signs in, and the same for every application (it is not our internal account id).
  • The user's email address, phone number and domains, but only the ones they have verified with Proof Holdings, whose proof of control is still live, and only the ones they agreed to share.
  • For each of them, the date of its last verification (email_verified_at, phone_number_verified_at, verified_at on each domain), as Unix seconds.

The user needs a Proof Holdings account. You choose what to ask for through scopes; the user decides what to share.


Register an application

Applications are registered by a signed-in account owner on the dashboard's Applications page (/apps). There is no dynamic client registration.

  1. Open Applications and create an application: a name (up to 60 characters, shown to users on the consent screen) and one to five redirect URIs.
  2. Copy the client ID (phc_…) and the client secret (phcs_…). The secret is shown once. Only a hash of it is stored, so if you lose it, regenerate it.
  3. Put both in your server-side configuration. Never ship the secret to a browser or a mobile app: every client is confidential.

Redirect URI rules:

  • https:// anywhere, or http:// only on a loopback host (localhost, 127.0.0.1, [::1]) for development.
  • No fragment (#), no user name or password, no whitespace, at most 1024 characters.
  • Matching is exact: the redirect_uri you send must equal one registered string byte for byte, including the port, the path and a trailing slash.
  • Up to 20 applications per account.

On the same page you can edit the name and the redirect URIs, regenerate the secret (the old one stops working at once; access tokens already issued keep working until they expire) and delete the application (it stops working everywhere and its access tokens are refused).

The consent screen shows our mark beside your logo. The logo comes from one of your sub-accounts: the one you pick for the application under Sign-in branding (offered when your account has more than one), else your primary sub-account. Set the logo on that sub-account's Public page. Without a logo the screen shows the first letter of the application's name.

An application acts only while the account that owns it is active. If that account is suspended or scheduled for deletion, the application is treated as unknown.


Endpoints

Configure your library from the discovery document; the table is for reference.

WhatURL
Issuerhttps://api.proof.holdings/api/v1/oidc
Discovery documenthttps://api.proof.holdings/api/v1/oidc/.well-known/openid-configuration
JWKS (ID token keys)https://api.proof.holdings/api/v1/oidc/jwks.json
Authorization endpointhttps://api.proof.holdings/api/v1/oidc/authorize
Token endpointhttps://api.proof.holdings/api/v1/oidc/token
UserInfo endpointhttps://api.proof.holdings/api/v1/oidc/userinfo
Revocation endpointhttps://api.proof.holdings/api/v1/oidc/revoke

The issuer has its own JWKS. ID tokens are signed with ES256 by keys that are never in the proof issuer's /.well-known/jwks.json, so a proof verifier cannot be made to accept an ID token. Keys rotate; select the key by the kid in the token header and refetch the JWKS when you meet a kid you do not have.


Scopes and claims

ScopeClaimsWhat it contains
openidsubRequired in every request. The user's stable identifier.
emailemail, email_verified, email_verified_atThe account's contact email: the address marked primary, otherwise the oldest verified one, among the addresses whose Account access is on, passing over any address whose proof of control is not live. email_verified is always true.
phonephone_number, phone_number_verified, phone_number_verified_atThe account's contact phone in E.164 form, chosen the same way among the numbers whose Account access is on. phone_number_verified is always true.
domainsdomainsThe verified domains the user ticked on the consent screen, as [{ "domain", "verified_at" }]. Only domains with a live proof of control are included.

An email address or phone number is shared only while its proof of control is live. If the user revokes that proof on their dashboard (the address or number stays on their account) or the proof expires, it stops being shared: the next address or number with a live proof takes its place, or the claim is omitted, and /userinfo reflects this from its next call. The same happens when the user turns Account access off for it.

The same claims appear in the ID token and in the UserInfo response. Scope values the server does not know (for example profile or offline_access) are ignored, not refused, so a library default such as openid email profile still works; there are no name, picture or preferred_username claims.

Example UserInfo response for openid email phone domains:

json
{
  "sub": "phu_4fJ9wq0LrT2mXc8vBz1kNa",
  "email": "[email protected]",
  "email_verified": true,
  "email_verified_at": 1764547200,
  "phone_number": "+15555550123",
  "phone_number_verified": true,
  "phone_number_verified_at": 1762041600,
  "domains": [
    { "domain": "example.com", "verified_at": 1763251200 }
  ]
}

Example decoded ID token payload for openid email:

json
{
  "iss": "https://api.proof.holdings/api/v1/oidc",
  "sub": "phu_4fJ9wq0LrT2mXc8vBz1kNa",
  "aud": "phc_0123456789abcdef0123456789abcdef",
  "iat": 1764590400,
  "exp": 1764591000,
  "auth_time": 1764589800,
  "nonce": "n-0S6_WzA2Mj",
  "email": "[email protected]",
  "email_verified": true,
  "email_verified_at": 1764547200
}

When the user does not have something

You may ask for phone from a user who has never verified a phone. The consent screen shows the missing item in red with a Verify link; the user can verify it there and come back to the same request, or continue without it. The user can also untick items they do not want to share.

Whatever is not shared is simply absent from the ID token and from UserInfo. The token response's scope names exactly what was granted, so read it instead of assuming the scopes you asked for (RFC 6749 §3.3). An openid email phone request from a user without a phone returns "scope": "openid email".


The flow

Authorization code flow only (response_type=code, response_mode=query). PKCE is supported and recommended.

  1. Redirect the user to the authorization endpoint with the parameters below.
  2. The user signs in to Proof Holdings (if they are not already) and sees the consent screen naming your application and your redirect host.
  3. On approval, the user is sent to your redirect_uri with code, your state and iss. On refusal, with error=access_denied, state and iss.
  4. Check that state is yours and that iss equals the issuer (RFC 9207). Then exchange the code at the token endpoint from your server.
  5. Validate the ID token (signature from the JWKS, iss, aud = your client ID, exp, and nonce if you sent one). Optionally call UserInfo with the access token.

When the user has already approved your application for every scope you request, at a redirect URI they already approved a sign-in to, the consent screen is skipped and they go straight back to you with a code. A redirect URI you register later shows the screen again the first time each user is sent to it. A scope whose item the user lacked when they approved is not part of that approval, so a request naming it shows the screen again. Each approval decides only the scopes its request asked for: a scope the user granted earlier stays granted when a later request does not name it, so asking for openid alone never takes back an earlier email. Of the domains, an approval decides only the ones the user could tick at that moment: a domain whose proof of control is not live then is not offered, so it stays granted: once its proof is live again, sign-ins from then on share it, and so do access tokens issued before the lapse (an access token issued while it was not offered does not carry it). This holds while at least one of the domains the user shared is live at the approval: if none is, the approval drops the domains scope, earlier access tokens stop carrying domains, and the next request for domains shows the consent screen again. A domain the user removes from their account leaves every approval: if they add and verify it again, it is never shared until the user approves it on the consent screen. While their approval still covers your request (it still grants the domains scope, which it keeps while it names another domain), the screen is skipped and the re-added domain stays unshared. In any case, send prompt=consent to show the consent screen. Users can withdraw your access at any time on their Applications page, under the apps with access to their data.

Authorization request

ParameterNotes
response_typeMust be code.
client_idYour client ID.
redirect_uriRequired, and exactly one of your registered URIs.
scopeSpace-separated; must include openid.
stateRecommended. Returned unchanged.
nonceRecommended. Copied into the ID token.
code_challenge, code_challenge_methodPKCE. Only S256 is accepted; plain is refused.
promptprompt=consent forces the consent screen. prompt=login makes the user sign in again. prompt=none is always answered with login_required, because this provider always needs the user on the consent screen. Other values (such as select_account) are refused with invalid_request.
max_ageSeconds. If the user signed in longer ago than this, they sign in again before approving. 0 behaves like prompt=login.

The authorization endpoint accepts GET and a POST form. Request objects (request, request_uri), the claims parameter and the registration parameter are not supported. Each parameter may appear once.

If client_id or redirect_uri is missing, unknown or not registered, the endpoint answers 400 itself (a JSON body with error and error_description) and does not redirect. Every other error is a redirect to your redirect_uri carrying error, error_description, state and iss.

Token request

POST to the token endpoint with an application/x-www-form-urlencoded body. Authenticate with one of:

  • client_secret_basic: Authorization: Basic base64(client_id:client_secret), each half form-encoded first (RFC 6749 §2.3.1). This is what most libraries do by default.
  • client_secret_post: client_id and client_secret in the body.

With CLIENT_ID and CLIENT_SECRET set in your shell:

text
curl -X POST https://api.proof.holdings/api/v1/oidc/token \
  -u "$CLIENT_ID:$CLIENT_SECRET" \
  -d grant_type=authorization_code \
  -d code=THE_CODE \
  -d redirect_uri=https://app.example.com/callback \
  -d code_verifier=YOUR_PKCE_VERIFIER

redirect_uri must be the one used in the authorization request. code_verifier is required when the authorization request carried a code_challenge, and refused when it did not.

The response (Cache-Control: no-store):

text
{
  "access_token": "phat_…",
  "token_type": "Bearer",
  "expires_in": 3600,
  "id_token": "eyJhbGciOiJFUzI1NiIs…",
  "scope": "openid email"
}

A code works once. If the same code is presented a second time, the exchange is refused and the access token issued from its first use is revoked. An exchange answered invalid_grant or temporarily_unavailable may have spent the code as well: start a new authorization request rather than sending the code again.

UserInfo request

Send the access token in the Authorization: Bearer header (GET or POST). A token in the query string or the body is refused with invalid_request. An unknown, expired or revoked token, a withdrawn consent, a deleted application, or a user account that is suspended or scheduled for deletion all answer 401 with WWW-Authenticate: Bearer error="invalid_token".

The access token reads UserInfo and nothing else: it is not an API key and no other Proof Holdings endpoint accepts it.


Lifetimes

ItemLifetime
Authorization code60 seconds, single use
Pending sign-in request (time to sign in, verify a missing item, approve)30 minutes
Access token3600 seconds
ID token (exp - iat)600 seconds

There are no refresh tokens (offline_access is ignored). When the access token expires, send the user through the flow again; when their approval covers every scope you request, this is a redirect round trip with no screen.


Errors

Authorization endpoint (in the redirect):

errorWhen
invalid_requestA parameter is missing, repeated or malformed (PKCE, prompt, max_age, response_mode).
unsupported_response_typeresponse_type is not code.
invalid_scopescope does not include openid.
login_requiredprompt=none was sent.
access_deniedThe user refused.
request_not_supported, request_uri_not_supported, registration_not_supportedThe corresponding parameter was sent.
temporarily_unavailable, server_errorTry again later.

Token endpoint (JSON body, RFC 6749 §5.2):

errorStatusWhen
invalid_client401Unknown client, wrong secret, or the application is deleted or its owner inactive.
invalid_request400Not a form body, a missing or repeated parameter, both authentication methods at once, a malformed code_verifier.
invalid_grant400The code is unknown, expired, already used, issued to another client or for another redirect_uri; PKCE fails; the user account is not active; the consent was withdrawn.
unsupported_grant_type400Anything but authorization_code.
temporarily_unavailable503The exchange could not be completed. Do not send the same code again: it may already be spent, and a second attempt then answers invalid_grant. Send the user through the authorization request again.

Revoking a token

POST the revocation endpoint (RFC 7009) with token=<access token> in a form body, authenticated exactly like the token endpoint. The answer is 200 with an empty body whether or not the token was known; only access tokens issued to your own client are revoked. If we cannot look the token up at that moment, the answer is 503 with temporarily_unavailable (RFC 7009 §2.2.1): the token was not revoked, so send the request again. ID tokens cannot be revoked: they expire after ten minutes.

There is no end-session (logout) endpoint. Signing the user out of your site does not sign them out of Proof Holdings.


NextAuth.js / Auth.js

Register https://app.example.com/api/auth/callback/proof-holdings as the redirect URI (the last segment is the provider id).

Auth.js (v5), auth.ts:

ts
import NextAuth from "next-auth"

export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [
    {
      id: "proof-holdings",
      name: "Proof Holdings",
      type: "oidc",
      issuer: "https://api.proof.holdings/api/v1/oidc",
      clientId: process.env.AUTH_PROOF_HOLDINGS_ID, // YOUR_CLIENT_ID
      clientSecret: process.env.AUTH_PROOF_HOLDINGS_SECRET, // YOUR_CLIENT_SECRET
      authorization: { params: { scope: "openid email phone domains" } },
      checks: ["pkce", "state"],
      client: { id_token_signed_response_alg: "ES256" },
      profile(profile) {
        return { id: profile.sub, email: profile.email ?? null }
      },
    },
  ],
  callbacks: {
    jwt({ token, profile }) {
      if (profile) {
        token.email_verified_at = profile.email_verified_at
        token.phone_number = profile.phone_number
        token.domains = profile.domains
      }
      return token
    },
  },
})

NextAuth.js (v4), pages/api/auth/[...nextauth].ts:

ts
import NextAuth from "next-auth"

export default NextAuth({
  providers: [
    {
      id: "proof-holdings",
      name: "Proof Holdings",
      type: "oauth",
      wellKnown: "https://api.proof.holdings/api/v1/oidc/.well-known/openid-configuration",
      clientId: process.env.PROOF_HOLDINGS_CLIENT_ID, // YOUR_CLIENT_ID
      clientSecret: process.env.PROOF_HOLDINGS_CLIENT_SECRET, // YOUR_CLIENT_SECRET
      authorization: { params: { scope: "openid email phone domains" } },
      idToken: true,
      checks: ["pkce", "state"],
      client: { id_token_signed_response_alg: "ES256" },
      profile(profile) {
        return { id: profile.sub, email: profile.email ?? null }
      },
    },
  ],
})

client.id_token_signed_response_alg matters on v4: its OpenID client library assumes another algorithm unless told otherwise, and our ID tokens are ES256. A claim the user did not share is undefined on profile.


Auth0

Add Proof Holdings as an enterprise OpenID Connect connection (Authentication → Enterprise → OpenID Connect → Create). Register https://YOUR_AUTH0_DOMAIN/login/callback as the redirect URI in Proof Holdings.

FieldValue
OpenID Connect Discovery URLhttps://api.proof.holdings/api/v1/oidc/.well-known/openid-configuration
Communication ChannelBack Channel (the Front Channel mode uses response_type=id_token, which this provider does not support)
Client IDYOUR_CLIENT_ID
Client SecretYOUR_CLIENT_SECRET
Scopesopenid email phone domains

Auth0 accepts ES256 ID tokens from an OpenID Connect connection; restricting the connection to the algorithms it should accept is optional.

To keep the claims beyond the email (the *_verified_at dates, phone_number, domains), set the connection's claim mapping to copy everything the provider sends:

text
{ "mapping_mode": "bind_all" }

Check how an array of objects such as domains arrives in the Auth0 user profile before you rely on it; Auth0 documents cases where arrays from an OIDC connection are stored as strings.


Keycloak

Add an identity provider of type OpenID Connect v1.0 (Identity providers → OpenID Connect v1.0), alias proof-holdings. Register https://KEYCLOAK_HOST/realms/YOUR_REALM/broker/proof-holdings/endpoint as the redirect URI in Proof Holdings.

SettingValue
Discovery endpointhttps://api.proof.holdings/api/v1/oidc/.well-known/openid-configuration (imports the endpoints, the issuer and the JWKS URL)
Client authenticationClient secret sent as basic auth
Client IDYOUR_CLIENT_ID
Client SecretYOUR_CLIENT_SECRET
Use PKCEOn, method S256
Validate SignaturesOn, with Use JWKS URL on
Scopesopenid email phone domains (under Advanced)
Trust EmailOn (an email we send is always verified)
Logout URLLeave empty: there is no end-session endpoint

Keycloak maps email itself. Add mappers (Mapper type Attribute Importer) for the rest:

Mapper typeClaimUser attribute name
Attribute Importeremail_verified_atemail_verified_at
Attribute Importerphone_numberphone_number
Attribute Importerphone_number_verifiedphone_number_verified
Attribute Importerphone_number_verified_atphone_number_verified_at

Keycloak ignores user attributes its realm user profile does not define (unmanaged attributes are disabled by default), so declare these under Realm settings → User profile first. domains is an array of objects: a mapper claim can reach one item by index (domains[0].domain), not the whole list, so read domains from the ID token or UserInfo in your own code. There is no name or preferred_username claim, so Keycloak's first broker login may ask the user to complete their profile.

Related

DocumentationAPI ReferenceSDKsMCP Server
Last updated December 1, 2026
Proof Holdings

The verification API for humans and AI agents — every verification a signed proof you hold.

A service of LT Telecom (UAB "LT telekomunikacijos")

PrivacyTermsDPASubprocessorsStatusGitHubLinkedIn