Users
Your users: set one up, read their spend, change their cap, export or erase them.
POST/v1/users/{user_id}/exportPackage everything held for the user into one download, for data-rights requests.
Request1 field
Path
user_idstringrequiredYour own id for the user, as you named them.
- Type
string
Answers 2005 fields
object"user_export"Always user_export.
- Type
"user_export"
urlstringA link to everything Vestra holds for the user, as one JSON file: good for 15 minutes.
- Type
string
expires_atstringWhen the link stops working, as an ISO 8601 time.
- Type
string
bytesintegerThe size of the file, in bytes.
- Type
integer
truncatedbooleantrue when the user has more than the 200 tasks it holds: the oldest are left out.
- Type
boolean
const download = await vestra.user('traveller-42').export();download = vestra.user("traveller-42").export()vestra users export traveller-42No sample in your language for this route, so here it is over HTTP.
curl -X POST "$VESTRA_BASE_URL/v1/users/{user_id}/export" \ -H "Authorization: Bearer $VESTRA_API_KEY"