Skip to content

Authentication

API authentication. This endpoint will create an access token that you can then use for subsequent API calls.

Operations

Token

Request

Retrieve an access token. Authenticate with HTTP Basic using the credentials supplied by Clubfit; the client sends Authorization: Basic <base64(username:password)>. The returned token is used as the bearer token on all subsequent calls.

Security
BasicAuth
POST
/token
curl -i -X POST \
  -u '<username>:<password>' \
  https://api.clubfit.net.au/v1/token

Responses

The response will contain the access token you will need to access the subsequent API calls.

Bodyapplication/json
AccessTokenstring

JWT access token

Example:"jashjgfafgdsljlfjsadjfsjflijsdlfdsxkzlcmlzxkcm"
ExpiresIninteger, (int32)

Number of seconds the access token is valid for

Example:3600
TokenTypestring

Bearer

Example:"Bearer"
Response
{ "AccessToken": "jashjgfafgdsljlfjsadjfsjflijsdlfdsxkzlcmlzxkcm", "ExpiresIn": 3600, "TokenType": "Bearer" }