Profiles
List profiles
GET
https://postifuse.com/v1/profilesThe workspace's profiles, one per client, brand or end user, with their account count. See workspaces and profiles.
curl --request GET \ --url 'https://postifuse.com/v1/profiles?external_id=cus_8f3a2' \ --header 'Authorization: Bearer pf_live_…'
const res = await fetch("https://postifuse.com/v1/profiles?external_id=cus_8f3a2", {
method: "GET",
headers: {
"Authorization": "Bearer pf_live_…"
},
});
const data = await res.json();
import requests
res = requests.get(
"https://postifuse.com/v1/profiles?external_id=cus_8f3a2",
headers={"Authorization": "Bearer pf_live_…"},
)
print(res.json())
[
{
"id": "prf_default",
"name": "Default",
"external_id": null,
"is_default": true,
"accounts": 0
},
{
"id": "prf_martin",
"name": "Martin Bakery",
"external_id": "cus_8f3a2",
"is_default": false,
"accounts": 3
}
]
{
"error": "workspace_not_active",
"message": "The workspace for this key is not active yet.",
"docs": "https://postifuse.com/docs/errors/"
}
Headers
AuthorizationstringrequiredBearer followed by a workspace key, a profile key or an OAuth token. See authentication.
Example Bearer pf_live_…
Query parameters
external_idstringFind the profile of one of your customers.
Example cus_8f3a2
Response
200Profiles
403Workspace not active