Documents

List documents

GET
Returns all documents for a space

Path parameters

spaceIdstringRequired
ID of space to return

Response

This endpoint returns an object
data
list of objects

Errors

GET
$curl https://api.x.flatfile.com/v1/spaces/us_sp_YOUR_ID/documents \
> -H "Authorization: Bearer <token>"
Response
1{
2 "data": [
3 {
4 "data": {
5 "body": "My information",
6 "createdAt": "2022-09-18T00:19:57.007Z",
7 "id": "us_dc_YOUR_ID",
8 "title": "My Document 1",
9 "updatedAt": "2022-09-18T00:19:57.007Z",
10 "actions": [
11 {
12 "label": "Submit",
13 "operation": "submitAction",
14 "mode": "foreground",
15 "description": "Submit data to webhook.site",
16 "primary": true
17 }
18 ],
19 "environmentId": "us_env_YOUR_ID",
20 "spaceId": "us_sp_YOUR_ID",
21 "treatments": []
22 }
23 }
24 ]
25}