---
title: "Authenticate application"
method: POST
path: "/auth/application"
tags: ["Authentication"]
---

# Authenticate application

`POST /auth/application`

## Request body

- object
  - `token` string
  - `persists` boolean — If set to true, the returned session will never expire.

## Response `200`

A [JSONAPI resource](http://jsonapi.org/format/#document-resource-objects) of type 'bearer_tokens'

- object
  - `data` BearerTokens
    - `type` string
    - `id` string — The JWT token to use in the Authorization header of subsequent requests
  - `included` ResourceIdentifier[] — An array of included JSONAPI resources
    - `type` string
    - `id` string

## Other responses

- `404` — The application integration with token string cannot be found

---

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