Ampersand · Schema

Oauth2AuthorizationCode

Oauth2AuthorizationCode schema from Ampersand API

Developer ToolsIntegrationsPlatformSaaSOAuthData SyncWebhooks

Properties

Name Type Description
accessToken object The access token for the connection.
refreshToken object The refresh token to use for the connection.
scopes array The scopes for the tokens.
View JSON Schema on GitHub

JSON Schema

ampersand-api-oauth2-authorization-code-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ampersand/refs/heads/main/json-schema/ampersand-api-oauth2-authorization-code-schema.json",
  "title": "Oauth2AuthorizationCode",
  "description": "Oauth2AuthorizationCode schema from Ampersand API",
  "type": "object",
  "properties": {
    "accessToken": {
      "type": "object",
      "required": [
        "token"
      ],
      "description": "The access token for the connection.",
      "properties": {
        "token": {
          "type": "string"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "issuedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "refreshToken": {
      "type": "object",
      "required": [
        "token"
      ],
      "description": "The refresh token to use for the connection.",
      "properties": {
        "token": {
          "type": "string"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "issuedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The scopes for the tokens."
    }
  }
}