Skip to content

Preview authorization

GET/admin/v1/stores/{store_id}/apps/authorize

    Check an OAuth authorization request and get what the consent screen shows. The admin's /oauth/authorize page calls this with the parameters the app sent.

    Path parameters

    • store_idstringrequired

      The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

    Query parameters

    • client_idstringrequired
    • redirect_uristringrequired

      Must exactly match one of the app's registered redirect URLs.

    • scopestring

      Space- or comma-separated scopes, within the app's manifest. The grant is always the manifest's scopes; the token response reports them.

    • statestring

      Returned unchanged to the app, to bind the response to its request.

    • code_challengestring

      PKCE (RFC 7636): BASE64URL(SHA256(code_verifier)).

    • code_challenge_methodstring

      S256 when a challenge is sent.

    Headers

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Returns

    200 The consent screen's content.

    Errors

    • 404not_foundUnknown client, or the app is not available to this store.
    • 422validation_failedUnregistered redirect URL, bad PKCE or undeclared scope.