-
Notifications
You must be signed in to change notification settings - Fork 36
/
notion-api-response-structure.json
97 lines (95 loc) · 1.93 KB
/
notion-api-response-structure.json
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
// In progress
{
"results": [
{
"id": "<id>",
"eventName": "exportSpace",
"request": {
"spaceId": "<workspace-id>",
"exportOptions": {
"exportType": "markdown",
"flattenExportFiletree": false,
"timeZone": "Europe/Berlin",
"locale": "en"
}
},
"actor": {
"table": "notion_user",
"id": "<id>"
},
"state": "in_progress",
"rootRequest": {
"eventName": "exportSpace",
"requestId": "<request-id>"
},
"status": {
"type": "progress",
"pagesExported": 3
}
}
]
}
// Success
{
"results": [
{
"id": "<id>",
"eventName": "exportSpace",
"request": {
"spaceId": "<workspace-id>",
"exportOptions": {
"exportType": "markdown",
"flattenExportFiletree": false,
"timeZone": "Europe/Berlin",
"locale": "en"
}
},
"actor": {
"table": "notion_user",
"id": "<id>"
},
"state": "success",
"rootRequest": {
"eventName": "exportSpace",
"requestId": "<id>"
},
"status": {
"type": "complete",
"pagesExported": 25,
"exportURL": "<download-url>"
}
}
]
}
// failure
{
"results": [
{
"id": "<id>",
"eventName": "exportSpace",
"request": {
"spaceId": "<workspace-id>",
"exportOptions": {
"exportType": "MARKDOWN",
"flattenExportFiletree": false,
"timeZone": "Europe/Berlin",
"locale": "en"
}
},
"actor": {
"table": "notion_user",
"id": "<id>"
},
"state": "failure",
"rootRequest": {
"eventName": "exportSpace",
"requestId": "<id>"
},
"headers": {
"ip": "<ip-address>"
},
"equeuedAt": 1673994491013,
"error": "Invalid input."
}
]
}