---
title: "POST /token/auth"
method: POST
path: "/token/auth"
tags: ["token"]
---

# POST /token/auth

`POST /token/auth`

Add token

## Request body

- AuthToken
  - `count` integer
  - `data` object[]
    - `active` boolean
    - `create_date` string
    - `creator_guid` string
    - `expire_date` string
    - `guid` string
    - `ip_address` string
    - `lastusage_date` string
    - `limit_calls` integer
    - `name` string
    - `usage_calls` integer
    - `user_object` object
      - `email` string
      - `firstname` string
      - `id` integer
      - `lastname` string
      - `partid` integer
      - `usergroup` string
      - `username` string

## Response `201`

AuthTokenCreateSuccessfulResponse

- AuthTokenCreateSuccessfulResponse
  - `data` object
    - `token` string
  - `message` string

## Other responses

- `400` — FailureResponse

## Changes

- **2021-10-13** `ee397eaefd08` — 7 info
  - the endpoint scheme security `SecurityDefinitions` was added to the API
  - the endpoint scheme security `in` was added to the API
  - the endpoint scheme security `name` was added to the API
  - the endpoint scheme security `type` was added to the API
  - …3 more
- **2020-04-01** `8739183b4c43` — 6 info
  - api operation id `AddAuthToken` removed and replaced with `authTokenAddAuthToken`
  - the endpoint scheme security `SecurityDefinitions` was removed from the API
  - the endpoint scheme security `in` was removed from the API
  - the endpoint scheme security `name` was removed from the API
  - …2 more
- **2020-01-30** `1a8a1ee5166b` — 1 info
  - the security scope `[]` was added to the endpoint's security scheme `bearer`
- **2020-01-30** `799e4fd8f4f4` — 1 info
  - endpoint added
- **2020-01-12** `52987c8da72a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sipcapture/apis/homer-app/changes/token/auth/post.md)

---

[API](https://skmtc.dev/sipcapture/apis/homer-app.md) · [All operations](https://skmtc.dev/sipcapture/apis/homer-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sipcapture/homer-app/revisions/ee397eaefd08/schema)
