# Body_auth_token_rest_auth_token_post

Type: object

Fields typed as another model are documented on that model's page; fetch it before filling the field.

| Field | Type | Required | Description | Allowed values / default / constraints |
| --- | --- | --- | --- | --- |
| `grant_type` | string | yes | OAuth2 grant type. Must be `authorization_code`. |  |
| `code` | string | yes | The single-use authorization code returned to your redirect URI by the authorize step. |  |
| `redirect_uri` | string | yes | The same redirect URI that was used to obtain `code`. It must match your application's registered URI exactly. |  |
| `client_id` | string | yes | Your application's client id. |  |
| `client_secret` | string | yes | Your application's client secret. Never expose it in a browser or mobile client. |  |

## Used by

- [POST /rest/auth/token](https://dev-api.sheetgo.com/rest/reference/auth.md#post-rest-auth-token)

---

More: start page https://dev-api.sheetgo.com/rest/reference.md, everything in one file https://dev-api.sheetgo.com/rest/llms-full.txt, OpenAPI https://dev-api.sheetgo.com/rest/openapi.json.
