Global.Church Developer Portal
Global.Church API

Onboarding

Endpoint:https://api.global.church

Claim organization (V0)

POST
https://api.global.church
/v0/onboarding/claim-org

Proxies org claiming requests to the Supabase Edge Function claim-org. Creates user profile and org claim record, determines claim result based on email domain matching.

Claim organization (V0)Headers

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Claim organization (V0)Request Body

  • userEmailstring · email · required
  • firstNamestring · required
  • lastNamestring · required
  • rolesstring[] · required
  • orgNamestring · required
  • isNewOrgboolean · required
  • web3authVerifierstring
  • orgUristring
  • orgDomainstring
  • newOrgNamestring

Claim organization (V0)Responses

Claim result

  • resultVariantstring · enum
    Enum values:
    claimed
    request-sent
    manual-review
    new-org
  • orgNamestring

CORS preflight for claim-org (V0)

OPTIONS
https://api.global.church
/v0/onboarding/claim-org

CORS preflight for claim-org (V0)Responses

No content

No data returned

Check user and org claim (GET) (V0)

GET
https://api.global.church
/v0/onboarding/check-user

Proxies to the Supabase Edge Function check-user. Returns user profile and approved org claim info for the given email.

Check user and org claim (GET) (V0)query Parameters

  • emailstring · email · required

Check user and org claim (GET) (V0)Headers

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Check user and org claim (GET) (V0)Responses

User check result with optional org claim

  • existsboolean · required
  • firstNamestring
  • lastNamestring
  • orgUristring
  • orgNamestring
  • orgTypestring

Check if user exists (POST) (V0)

POST
https://api.global.church
/v0/onboarding/check-user

Proxies to the Supabase Edge Function check-user. Checks if a user profile exists for the given email address.

Check if user exists (POST) (V0)Headers

  • Authorizationstring · required

    The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Check if user exists (POST) (V0)Request Body

  • emailstring · email · required

Check if user exists (POST) (V0)Responses

User check result

  • existsboolean · required
  • firstNamestring
  • lastNamestring

CORS preflight for check-user (V0)

OPTIONS
https://api.global.church
/v0/onboarding/check-user

CORS preflight for check-user (V0)Responses

No content

No data returned