Create password-grant client

Create a Passport password-grant client used to mint tokens via the password flow. Emits audit OAUTH_CLIENT_PASSWORD_GRANT_CREATED.

Auth

  • bearer token. Grouped under admin/super-admin in the route file.

Rate limit

  • No rate limit.

Body

FieldTypeRequiredNotes
namestringRequiredClient name (passed to createPasswordGrantClient).
user_idintegerRequiredRequired by validation; not otherwise consumed by the controller.

Behaviour

  • 200 with client_id + client_secret (plaintext, returned once). 422 on validation failure.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
integer
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json