-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-app-api-authorization-structure.json
More file actions
107 lines (107 loc) · 2.35 KB
/
github-app-api-authorization-structure.json
File metadata and controls
107 lines (107 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/json-structure/github-app-api-authorization-structure.json",
"name": "authorization",
"description": "The authorization for an OAuth app, GitHub App, or a Personal Access Token.",
"type": "object",
"properties": {
"id": {
"type": "int32",
"example": 42
},
"url": {
"type": "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": "uri"
}
},
"required": [
"client_id",
"name",
"url"
]
},
"note": {
"type": "string",
"nullable": true,
"example": "example_value"
},
"note_url": {
"type": "uri",
"nullable": true,
"example": "https://api.github.com/repos/octocat/Hello-World"
},
"updated_at": {
"type": "datetime",
"example": "2026-04-17T12:00:00Z"
},
"created_at": {
"type": "datetime",
"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": "datetime",
"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"
]
}