---
title: "Generate Access Token"
method: POST
path: "/oauth/token"
tags: ["Authentication"]
---

# Generate Access Token

`POST /oauth/token`

## Request

- Base URL: `https://powered-by-bamboo-sandbox.investbamboo.com`
- URL: `https://powered-by-bamboo-sandbox.investbamboo.com/oauth/token`
- Auth: none declared. Required headers: `content-type`, `accept-language`, `app-key`

This endpoint generates your access token, referred to as your `x-client-token` within Bamboo’s system. 
The credentials needed to generate it will be provided by the Bamboo Team during account setup.

## Headers

- `content-type` string, required
- `accept-language` string, required
- `app-key` string, required

## Request body

- object: POST request body parameters
  - `username` string, required: Username
  - `password` string, required: Password

## Response `200`

Tenant Login Successful

- object: Result of POST request on tenant login
  - `access_token` string, required: Tenant access token (x-client-token)
  - `expires_in` string, required: Token expiration time in seconds

## Other responses

- `401`: Invalid app key supplied
- `422`: Incorrect Parameters

---

[API](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api.md) - [All operations](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api/revisions/063521e8d924?raw)
