Skip to main content
Get from zero to a working userinfo response.

1. Register your app

  1. Sign in at developer.meridian.surf.
  2. Click New application.
  3. Provide a name, website URL (https://), and at least one redirect URI.
  4. Copy the client id and client secret. The secret is shown once.
Store the client secret in your own secret manager. The portal only shows a masked value after creation or rotation.

2. Add redirect URIs

Register every callback URL your app uses. URIs must use https:// and match exactly (path included). Wildcards are not supported. For the hosted example app, register: https://developer.meridian.surf/example/callback Minimal scopes for a first integration:
Or use the Authorization tab URL generator in the portal.

4. Handle the callback

On success Meridian redirects to:
Codes expire in 5 minutes and are single-use. Also handle error=access_denied and error=consent_required.

5. Exchange the code

You receive an access token (mrdn_at_…, 15 minutes). With offline_access, you also get a refresh token (mrdn_rt_…, 30 days).

6. Call userinfo

Fields depend on the scopes you requested. See Scopes and Endpoints.
Prefer the live example if you only want to inspect a userinfo payload first.
Last modified on August 9, 2026