Get a team membership
GET/api/v1/memberships/{id}
- Needs an API key, and runs with the access of the member who made the key.
- A connected AI assistant can use it too, as
getMembership.
Parameters
In the address
idstring (uuid)required
Responses
200Membership details.
dataobjectrequiredFields(10)
lock_versionintegerAt least 0.
created_atstring (date-time)requiredupdated_atstring (date-time)requiredidstring (uuid)requiredaccount_idstring (uuid)requireduserobjectrequiredFields(5)
idstring (uuid)requirednamestringrequiredemailstring (email)requiredtime_zonestringrequiredhas_passwordbooleanrequiredFalse for people who only ever sign in with Google, Microsoft or Apple. Says which confirmation `deleteAccount` should ask for.
rolestringrequiredOne of: owner, office, technician.
calendar_colorstring or nullactivebooleanrequiredinvitedbooleanrequiredTrue until the member sets a password from their invitation email.
A refusal answers in the one error shape every operation shares.
Example
A request our own tests send. The ids are made up: put your own in their place.
curl "https://app.tradesender.co.uk/api/v1/memberships/36c7095b-fcec-58a6-b1e1-916bdae515d3" \ -H "Authorization: Bearer $TRADESENDER_KEY"