---
title: "Authorize"
method: POST
path: "/authorize"
tags: ["Authorize"]
---

# Authorize

`POST /authorize`

## Request

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

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.

## Request body

- object
  - `token` string, required: Token provided by Sitehive to the client for authentication.

## Response `200`

Represents a token used to authenticate API requests.

- Def0: Represents a token used to authenticate API requests.
  - `token` string, required: Validated token for authenticating API requests.
  - `expiry` number, required: Unix timestamp in milliseconds indicating when the token expires.

## Other responses

- `400`: Returned when the request payload, query parameters, or path parameters fail validation..
- `401`: Returned when a request fails authentication due to a missing, invalid, or expired bearer token.

---

[API](https://skmtc.dev/sitehive/apis/sitehive-public-api.md) - [All operations](https://skmtc.dev/sitehive/apis/sitehive-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sitehive/apis/sitehive-public-api/revisions/a547c1378f9b?raw)
