{
  "$id": "https://curveballjs.org/schemas/a12nserver/one-time-token-exchange.json",
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "additionalProperties": false,
  "description": "Request body of the exchange one-time-token endpoint.",
  "properties": {
    "activateUser": {
      "description": "Activate the user if the token was valid.",
      "type": "boolean"
    },
    "client_id": {
      "description": "The OAuth2 client_id. This client will be associated with the generated token.",
      "type": "string"
    },
    "dontExpire": {
      "description": "Don't expire the one-time-token even if it was correct.",
      "type": "boolean"
    },
    "token": {
      "description": "The token previously obtained with the 'generate one-time-token' endpoint.",
      "type": "string"
    }
  },
  "required": [
    "token",
    "client_id"
  ],
  "type": "object"
}