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

# Create Token

`POST /token/`

In order to create a token, perform a POST request to this endpoint, example:<br/>
<table><tbody>
    <tr><td>Application ID</td><td>123</td></tr>
    <tr><td>Application Secret</td><td>ABC</td></tr>
    <tr><td>Authorization header format</td><td>Authorization: base64(app_id:app_secret)</td></tr>
    <tr><td>Expected result</td><td>Authorization: MTIzOkFCQw==</td></tr>
</tbody></table>
For testing purposes, a CURL can be used:
<pre>
curl -X POST -H "Authorization: Basic MTIzOkFCQw==" https://api.wefitter.com/api/v1.3/token/
# alternatively
curl -X POST --user 123:ABC https://api.wefitter.com/api/v1.3/token/
</pre>

The response to a successful request should look like this:
<pre>
{
    "bearer": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIxNTY2NTYxMzk2IiwiaWF0IjoxNTE2MjM5MDIyfQ.14x12h5VMJjAV2kFB5cCrfFmZhryBAYGk9N-vhyDl00"
}
</pre>

## Request body

- Token
  - `bearer` string

## Response `201`

Created

- Token
  - `bearer` string

---

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