Privacy
Get a treatment purpose
GET /treatment_purposes/{uuid}
GET
/treatment_purposes/{uuid}Returns one treatment purpose with its texts per language and the channels it applies to.
When to use: To read a consent text you already know.
When not to use: To find purposes use list_treatment_purposes.
Permissions: Requires the manager role or higher, or the marketing.audiences.read capability.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
uuid*string
UUID of the treatment purpose. Get it with list_treatment_purposes.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/treatment_purposes/d2b85f30-7a14-4e96-8c3d-61f0a9e4b527" \ -H "X-Auth-Token: YOUR_API_KEY"{ "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "translations": [ { "title": "string", "locale": "string" } ], "name": "string", "description": "string", "custom": true, "channels": [ "email" ]}