POST
org-export/
User APIService tier
POST to org-export/. derived from route
URL
- User APIhttps://forms.mattering.io/api/user/v1/org-export/
- Service tierhttps://forms.mattering.io/api/internal/org-export/
Body keys (JSON)
| Key | Required | Default |
|---|---|---|
_email | optional or conditional | none |
_org_id | optional or conditional | none |
email | optional or conditional | none |
org_id | optional or conditional | none |
Keys the view reads. A key not in this list is ignored by the view. Where a key is required only for some actions (for example the action dispatch), the description above says which.
Responses
200 bare JSON object (no envelope)
{
"data": {
"app": "...",
"parts": "...",
"files": [
"..."
]
},
"meta": {
"cursor": "...",
"more": "..."
}
}
Field names come from the code; values are placeholders (... is a string, 0 a number, dates are ISO 8601).
Errors
| Status | Code |
|---|---|
| 401 | unauthorized |
Example
curl -X POST "https://forms.mattering.io/api/user/v1/org-export/" \
-H "Authorization: Bearer $MATTERING_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"_email": "...",
"_org_id": "...",
"email": "...",
"org_id": "..."
}'curl -X POST "https://forms.mattering.io/api/internal/org-export/" \
-H "X-Internal-Secret: $MATTERING_INTERNAL_API_SECRET" \
-H "X-Internal-Org-Id: $ORG_ID" \
-H "X-Internal-User-Email: you@example.com" \
-H "Content-Type: application/json" \
-d '{
"_email": "...",
"_org_id": "...",
"email": "...",
"org_id": "..."
}'
Source: FormsCore/data_rights.py (data_rights.org_export_view)