Ampersand · JSON Structure

Ampersand Api Oauth2 Authorization Code Structure

Oauth2AuthorizationCode schema from Ampersand API

Type: object Properties: 3
Developer ToolsIntegrationsPlatformSaaSOAuthData SyncWebhooks

Oauth2AuthorizationCode is a JSON Structure definition published by Ampersand, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

accessToken refreshToken scopes

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ampersand/refs/heads/main/json-structure/ampersand-api-oauth2-authorization-code-structure.json",
  "name": "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": "datetime"
        },
        "issuedAt": {
          "type": "datetime"
        }
      }
    },
    "refreshToken": {
      "type": "object",
      "required": [
        "token"
      ],
      "description": "The refresh token to use for the connection.",
      "properties": {
        "token": {
          "type": "string"
        },
        "expiresAt": {
          "type": "datetime"
        },
        "issuedAt": {
          "type": "datetime"
        }
      }
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The scopes for the tokens."
    }
  }
}