---
title: "access_token"
method: POST
path: "/access_token"
tags: ["Authentication"]
---

# access_token

`POST /access_token`

Query the authorization server for an access token used to access property resources.</br> If the automatic delivery method for API keys is used, the grant type `urn:ietf:params:oauth:grant-type:api-key` needs to be used to request an API key. This grant type requires `grant_type=urn:ietf:params:oauth:grant-type:api-key`, `client_id`, `client_secret`, `redirect_uri` and `code`.</br> For OAuth 2.0., two different grant types (`authorization_code`, `refresh_token`) are supported. Authorization code grant type requires `grant_type=authorization_code`, `client_id`, `client_secret`, `redirect_uri`, `code`. Refresh token grant type requires `grant_type=refresh_token`, `client_id`, `client_secret`, `refresh_token`.</br> Read the [Authentication guide](https://integrations.cloudbeds.com/hc/en-us/sections/14731510501915-Authentication) for implementation tips, user flows and testing advice.

## Response `200`

200 Response

- PostAccessTokenResponse
  - `access_token` string — Authenticated access token.
  - `token_type` string — The type of the access token authenticated.
  - `expires_in` integer — The expiration time of the access token in seconds.
  - `refresh_token` string — A token to refresh your access token without performing the full auth flow.
  - `resources` object[] — List of resources associated with the token during consent
    - `type` 'property' | 'association' — A type of associated resource
    - `id` string — Unique ID of associated resource

---

[API](https://skmtc.net/cloudbeds/apis/cloudbeds-api.md) · [All operations](https://skmtc.net/cloudbeds/apis/cloudbeds-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbeds/cloudbeds-api/revisions/2faa857793e8/schema)
