Start here

Quickstart

The shortest honest path from nothing to a published application that people can sign into and launch.

This is the whole journey in one page. Each step links to the page that explains it properly, with the failure modes.

  1. 1

    Get an admin session

    Catalog changes go through /appcenter/v3/admin with a bearer token for someone holding Manage applications. In practice that is an App Center operator at /vsa/apps.

  2. 2

    Create the application record

    POST /apps with a name, a stable shortCode, a category and a tagline. It starts as draft, which means only admins can see it.

  3. 3

    Register an OAuth client

    POST /apps/:appId/oauth-clients. Pick confidential_web, public_pkce or confidential_service. The secret is returned exactly once.

  4. 4

    Integrate sign-in

    Authorization Code with PKCE against the issuer. Discover the endpoints at boot, never hard-code them.

  5. 5

    Call the API with your own token

    Prove the credential with GET /appcenter/v3/app/me, then read users, businesses and subscriptions.

  6. 6

    Add a plan

    POST /apps/:appId/plans. Prices are integers in minor units. A published app with no active plan cannot be bought.

  7. 7

    Receive webhooks

    Register a receiver, verify the delivery token against the JWKS over the raw body, deduplicate on X-AppCenter-Delivery, and acknowledge before doing work.

  8. 8

    Publish

    PATCH /apps/:appId with status: published, then walk the launch flow end to end with a real account.

An afternoon, not a week

If your framework already speaks OpenID Connect, steps 3 to 5 are configuration. The parts that usually take time are redirect URI mismatches and webhook signature verification against the raw body.

The smallest working example

discovery.mjs
const issuer = "https://apps-api.versified.com.gh/oidc";

const config = await fetch(
  `${issuer}/.well-known/openid-configuration`,
).then((res) => res.json());

// Then redirect to config.authorization_endpoint with:
//   response_type=code
//   client_id=your-client-id
//   redirect_uri=the exact URI you registered
//   scope=openid profile email offline_access
//   code_challenge=base64url(sha256(verifier))
//   code_challenge_method=S256
//   state=<random, stored in the session>

Something here out of date or unclear?

The platform team answers integration questions directly.

support@versified.com.gh
32 pages in this documentation