Service Accounts

Create a service account

Creates a new service account with OAuth2 client credentials for programmatic API access

post/v1/service-accounts

Request

  • Base URL
    https://docs.grepr.ai (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header GREPR-API-KEY
    • or OpenID Connect (https://grepr-prod.us.auth0.com/.well-known/openid-configuration)

Request body

namestring required

Display name for the service account

roleIdsstring[] required

List of role IDs to assign to the service account

Example request

{
  "name": "Production API Access",
  "roleIds": [
    "rol_AlphaNum1234",
    "rol_alphaNum5678"
  ]
}

Response

Service account created successfully

clientIdstring required

OAuth2 client ID for authentication

idstring required

Unique identifier

namestring required

Display name of the service account

secretstring password required

The OAuth2 client secret for authentication

Changes

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