postOauth
Creates OAuth tokens for authentication, supporting password, authorization code, refresh token, and device code grants.
Instructions
Create token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant_type | Yes | OAuth grant type to use. | |
| username | No | Username (database user or sub-user). Used only with password grant. | |
| password | No | Password for password grant. | |
| database | No | Database name the user belongs to. | |
| client_id | No | OAuth client id. | |
| client_secret | No | OAuth client secret. | |
| code | No | Authorization code exchanged for tokens (authorization_code grant). | |
| redirect_uri | No | Redirect URI for authorization_code grant. | |
| code_verifier | No | PKCE code verifier. |