---
title: "Get an authorization token"
method: POST
path: "/public/token"
tags: ["authorization"]
---

# Get an authorization token

`POST /public/token`

## Request body

- CredentialInput
  - `username` string
  - `password` string

## Response `200`

Credentials

- CredentialOutput
  - `result` object
    - `AccessToken` string
    - `ExpiresIn` integer
    - `TokenType` string
    - `RefreshToken` string
    - `IDToken` string

---

[API](https://skmtc.dev/spiky/apis/spiky-api-v2.md) · [All operations](https://skmtc.dev/spiky/apis/spiky-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spiky/spiky-api-v2/revisions/4ca9939b6fb7/schema)
