---
title: "Get Client Token"
method: POST
path: "/get-client-token"
tags: ["developers"]
---

# Get Client Token

`POST /get-client-token`

Gets Client Token

## Request body

- object
  - `op_host` string, required
  - `op_discovery_path` string
  - `scope` string[]
  - `client_id` string, required
  - `client_secret` string, required
  - `authentication_method` string — if value is missed then basic authentication is used. Otherwise it's possible to set `private_key_jwt` value for Private Key authentication.
  - `algorithm` string — optional but is required if authentication_method=private_key_jwt. Valid values are none, HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512
  - `key_id` string — optional but is required if authentication_method=private_key_jwt. It has to be valid key id from key store.

## Response `200`

OK

- object
  - `scope` string[], required
  - `access_token` string, required
  - `expires_in` integer, required
  - `refresh_token` string, required

## Other responses

- `400` — Invalid parameters are provided to endpoint.
- `403` — Forbidden. Invalid access token provided in Authorization header.
- `500` — Internal error occured. Please check oxd-server.log file for details (usually located in /var/log/oxd-server/oxd-server.log).

## Changes

- **2018-11-30** `c28eaefdb285` — 5 breaking
  - removed the request body
  - removed the media type `application/json` for the response with the status `200`
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `403`
  - …1 more

[Change history](https://skmtc.dev/gluufederation/apis/oxd-server/changes/get-client-token/post.md)

---

[API](https://skmtc.dev/gluufederation/apis/oxd-server.md) · [All operations](https://skmtc.dev/gluufederation/apis/oxd-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gluufederation/oxd-server/revisions/c28eaefdb285/schema)
