latestSwagger 2.0BSD License2026-08-107753105.4 KB

52b0eb5e8b96

token

Create 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>
post/token/

Request body

bearerstring

Response

Created

bearerstring