> For the complete documentation index, see [llms.txt](https://docs.cotter.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cotter.app/getting-access-token/requesting-custom-fields-on-your-jwt-token.md).

# Requesting Custom Fields on your JWT Token

### Use Case <a href="#use-case" id="use-case"></a>

Let's say you have a user with attributes:

```javascript
{    
    "username": "helloworld",    
    "role": "admin"
}
```

And you want to include this in Cotter's Access Token so that you can quickly access them in your API Middleware, you can now do this by calling an API request.

### &#x20;The API <a href="#request-custom-claims-on-cotters-access-token" id="request-custom-claims-on-cotters-access-token"></a>

To do this, checkout the API reference at

{% content-ref url="/pages/-MGMZEOXjRRPxy1zAe-9" %}
[Requesting Custom Claims on your Access Token](/api-reference/oauth-tokens-api/requesting-custom-claims-on-your-access-token.md)
{% endcontent-ref %}
