OAuth apps
An OAuth app acts in a workspace for the member who let it in, with the access they chose. Use one when your product connects to other people’s workspaces; for your own scripts, an API key is simpler.
Registering an app
Section titled “Registering an app”In Settings › Developers › OAuth apps, register the app with its name, its website (shown on the consent screen) and its redirect URIs, and choose its kind:
- Confidential, for a server that keeps a secret: it gets a client ID and a client secret, shown once. Roll the secret there if it leaks; the old one stops working at once.
- Public, for a native, browser or command-line app: a client ID only. It proves itself with PKCE.
Redirect URIs are matched exactly: https:// anywhere, http:// only to localhost, 127.0.0.1 or [::1] (on any port, for native apps), or a native app’s own scheme. Deleting the app ends every workspace’s access through it.
MCP clients register themselves through dynamic client registration at POST /api/oauth/register, as public clients unless they ask for a secret. Their consent screen says Digize hasn’t checked them.
Asking for access
Section titled “Asking for access”Send the member to the authorization endpoint with PKCE (S256, required for every app):
https://digize.com/oauth/authorize ?response_type=code &client_id=oap_01JD7… &redirect_uri=https://example.com/oauth/callback &scope=crm:read crm:write commerce:read &state=… &code_challenge=… &code_challenge_method=S256Scopes are workspace permissions, each module’s read or write (write includes read): crm, commerce, automations, sites, ads, social, analytics, reviews and settings. Left out, the app asks for all of them, and the member chooses.
Digize signs the member in if they aren’t, then shows the consent screen: the app’s name and site, where it sends them back, a workspace to choose, and each module the app asked for with how far it may go, never past what their role has there. Allow sends them to your redirect URI with code, state and iss=https://digize.com; Cancel with error=access_denied. A request that isn’t right (no PKCE, an unknown scope) comes back with error too; a client or redirect URI Digize doesn’t know is shown to the member and never redirected to.
Tokens
Section titled “Tokens”Trade the code within ten minutes, once, at the token endpoint, with the verifier:
curl -X POST https://digize.com/api/oauth/token \ -u "$CLIENT_ID:$CLIENT_SECRET" \ -d grant_type=authorization_code \ -d code="$CODE" \ -d redirect_uri=https://example.com/oauth/callback \ -d code_verifier="$VERIFIER"{ "access_token": "dgz_oat_…", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "dgz_ort_…", "scope": "crm:read crm:write commerce:read"}A public app sends client_id in the body instead of a secret. The access token works for an hour on the public API and the MCP server, as Authorization: Bearer dgz_oat_…. Refresh it with grant_type=refresh_token: each refresh token works once and comes back with a new one, for 30 days. A refresh token used twice ends the grant, since someone else may have it, and so does a code used twice.
On every request, what the token may do is its scopes cut to the member’s role at that moment. A member whose role changes takes the app down with them; one who leaves the workspace ends it.
Revoking
Section titled “Revoking”- From your app:
POST /api/oauth/revokewithtokenand the app’s credentials (RFC 7009). A refresh token ends the grant; an access token, only itself. - From Digize: Settings › Developers › Authorized apps lists every app members let in, for whom, with what and when it was last used. A member revokes their own; someone who manages the workspace’s settings revokes anyone’s.
Discovery
Section titled “Discovery”https://digize.com/.well-known/oauth-authorization-server has the endpoints (RFC 8414), and /.well-known/oauth-protected-resource/api/mcp names the MCP server’s (RFC 9728).