Export organization members as a PDF file.
POST/v1/organizations/{organization_id}/users/export-pdf
organization_id string required
Organization ID
search_term string optional
Search filter
role_id string optional
Role filter
status_id string optional
Status filter
include_deleted boolean optional
Include soft-deleted members
sort_by string optional
Field to sort by (e.g., name, email, created_at)
sort_order string optional
Sort order: asc or desc
Returns a PDF file with member data.
- Content-Type:
application/pdf - Content-Disposition:
attachment; filename="members_{organization_id}.pdf"
- Limited to 10,000 records per export
- Filters are applied before export
- Returns error if limit exceeded
- PDF includes formatted table with all member details
Requires Admin or Owner role.
Bash
- Bash
- Python
- JavaScript
curl -X POST https://api.aitronos.com/v1/organizations/org_abc123/users/export-pdf \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status_id": "status_active"
}' \
--output members.pdfResponse:
(PDF binary data)