Authorize

Authorize

Represents a validated token returned by Sitehive for authenticating API requests. The response includes both the token and its expiry timestamp. The token should be included in the Authorization header as a Bearer token when making requests.

post/authorize

Request

  • Base URL
    https://api.sitehive.co (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

tokenstring required

Token provided by Sitehive to the client for authentication.

Example request

{
  "token": "2ba6d01f-b4b5-4721-a388-aa138f6fb94a"
}

Response

Represents a token used to authenticate API requests.

tokenstring required

Validated token for authenticating API requests.

expirynumber required

Unix timestamp in milliseconds indicating when the token expires.

Example response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjE2MTgsIm5iZiI6MTc2NTUxMzY2NCwiaWF0IjoxzNjY0LCJleHAiOjE3NjU1MTcyNjR9.UHzQ8mhXZMQ3vZFWj20esbFD7pPuppO6aB2CE0I",
  "expiry": 1767925680822
}

Changes

No recorded changes to this operation across all 1 revision of this API.