---
title: "Obtain or refresh an OAuth access token"
slug: "obtain-or-refresh-an-oauth-access-token-1"
updated: 2026-02-26T11:12:16Z
published: 2026-02-26T11:12:41Z
canonical: "docs.zilliant.com/obtain-or-refresh-an-oauth-access-token-1"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zilliant.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Obtain or refresh an OAuth access token
Post/oauth/token
Issues OAuth 2.0 access tokens.
Body parametersObtain an access token
Obtain a new access token.
```
{
"grant_type": "password",
"username": "{{username}}",
"password": "{{password}}",
"client_id": "{{client_id}}",
"client_secret": "{{client_secret}}"
}
```
Refresh an access token
Obtain an access token using an existing refresh token.
```
{
"grant_type": "refresh_token",
"client_id": "{{client_id}}",
"client_secret": "{{client_secret}}",
"refresh_token": "{{refresh_token}}"
}
```
object grant_typestring Required
OAuth 2.0 grant type. Use **password** to obtain an access token with username and password, or **refresh_token** to obtain a new access token using an existing refresh token.
Valid values[
"password",
"refresh_token"
]
usernamestring
Username of the user. Required when **grant_type** is **password**.
passwordstring (password)
Password of the user. Required when **grant_type** is **password**.
client_idstring Required
Client identifier (consumer key) of the OAuth client.
client_secretstring (password)
Client secret (consumer secret) of the OAuth client.
refresh_tokenstring
Refresh token issued by a previous token request. Required when **grant_type** is **refresh_token**.
Responses200
Successful token response.
```json
{
"access_token": "37aa9ab9-13d4-4a56-a774-c593889ce83f",
"token_type": "bearer",
"refresh_token": "99e467c8-a113-41b3-81b0-14ec947d1802",
"scope": "trust"
}
```
object access_tokenstring
Access token to use in authorized API calls.
token_typestring
Type of token, usually `bearer`.
refresh_tokenstring
Refresh token that can be used to obtain a new access token.
scopestring
Space-delimited list of scopes granted by the token.