Service Accounts

Create service account API key

Generate a new M2M API key for backend services (admin only)

post/admin/service-accounts

Request

  • Base URL: https://us-central1-paymentgateway-ab783.cloudfunctions.net/api
  • URL: https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/admin/service-accounts
  • Auth: HTTP bearer

Request body

namestring required

Service account name

descriptionstring

Purpose of this service account

environment'development' | 'production' | 'enterprise' required
projectIdstring

Firebase project ID this service belongs to

scopesstring[] required

Permissions (e.g., ["read:users", "write:subscriptions"])

expiresInDaysinteger

Optional expiration window in days

Response

Service account created

Changes

No recorded changes to this operation across all 1 revision of this API.