API authentication
post/oauth/token

Request

  • Base URL
    https://core.sivo.com
  • Auth
    • API key in header Authorization
    • or OAuth 2
      Authorization codehttps://dashboard.sivo.com/oauth/authorize
      Client credentials
      Token URLhttps://core.sivo.com/oauth/token
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Headers

Idempotency-Keystring

A unique key per operation, could be V4 UUID or other high‑entropy random string. Keys can be up to 256 bytes. See Idempotent Requests.

Example:978771af-77de-4e24-ba39-f602502ceb78

Request body

OR

Example request

{
  "redirect_uri": "https://www.acme.com",
  "resource": "https://www.acme.com"
}

Response

Successful operation

access_tokenstring required

Non-empty text string

refresh_tokenstring required

Non-empty text string

expires_ininteger required

Non-negative integer (0 to 2147483647)

token_type'bearer' required

Example response

{
  "expires_in": 42
}

Changes

    • warning

      deleted the header request parameter IdempotencyKey

    • info

      added the new optional header request parameter Idempotency-Key