{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/json-schema/github-app-api-authorization-schema.json", "title": "authorization", "description": "The authorization for an OAuth app, GitHub App, or a Personal Access Token.", "type": "object", "properties": { "id": { "type": "integer", "example": 42 }, "url": { "type": "string", "format": "uri", "example": "https://api.github.com/repos/octocat/Hello-World" }, "scopes": { "description": "A list of scopes that this authorization is in.", "type": "array", "items": { "type": "string" }, "nullable": true }, "token": { "type": "string", "example": "example_value" }, "token_last_eight": { "type": "string", "nullable": true, "example": "example_value" }, "hashed_token": { "type": "string", "nullable": true, "example": "example_value" }, "app": { "type": "object", "properties": { "client_id": { "type": "string" }, "name": { "type": "string" }, "url": { "type": "string", "format": "uri" } }, "required": [ "client_id", "name", "url" ] }, "note": { "type": "string", "nullable": true, "example": "example_value" }, "note_url": { "type": "string", "format": "uri", "nullable": true, "example": "https://api.github.com/repos/octocat/Hello-World" }, "updated_at": { "type": "string", "format": "date-time", "example": "2026-04-17T12:00:00Z" }, "created_at": { "type": "string", "format": "date-time", "example": "2026-04-17T12:00:00Z" }, "fingerprint": { "type": "string", "nullable": true, "example": "example_value" }, "user": { "$ref": "#/components/schemas/nullable-simple-user" }, "installation": { "$ref": "#/components/schemas/nullable-scoped-installation" }, "expires_at": { "type": "string", "format": "date-time", "nullable": true, "example": "2026-04-17T12:00:00Z" } }, "required": [ "app", "id", "note", "note_url", "scopes", "token", "hashed_token", "token_last_eight", "fingerprint", "url", "created_at", "updated_at", "expires_at" ] }