Plane docs
ApiSchemas

ConnectionGrant

One shape from the contract, as it appears on the wire.

Used by connections.grants.list

JSON Schema

{
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/GrantId"
    },
    "connectionId": {
      "$ref": "#/components/schemas/ConnectionId"
    },
    "connection": {
      "$ref": "#/components/schemas/ConnectionName"
    },
    "identity": {
      "$ref": "#/components/schemas/Identity"
    },
    "resource": {
      "type": "string",
      "minLength": 1
    },
    "issuer": {
      "type": "string",
      "minLength": 1
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "status": {
      "$ref": "#/components/schemas/GrantStatus"
    },
    "error": {
      "type": "string"
    },
    "hasRefreshToken": {
      "type": "boolean"
    },
    "expiresAt": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "lastUsedAt": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "connectionId",
    "connection",
    "identity",
    "resource",
    "scopes",
    "status",
    "hasRefreshToken",
    "createdAt",
    "updatedAt"
  ],
  "additionalProperties": false
}

On this page