Consumers
Manage instance consumers independently from portals and inspect the profiles linked to each consumer.
Consumers object
Attributes
object
Stringid
Stringname
Stringcreated_at
Dateupdated_at
Date{"object": "consumer"}
List consumers
Returns a paginated list of consumers for an instance.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/consumers" \-H "Authorization: Bearer metorial_sk_..."
Get consumer
Retrieves a consumer by ID.
URL Parameters
consumer_id
StringThe unique identifier for the consumer
curl -X GET "https://api.metorial.com/consumers/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create consumer
Creates or links a consumer for an instance.
Request Body
name
Stringcurl -X POST "https://api.metorial.com/consumers" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","email": "example_email"}'
Update consumer
Updates a consumer for an instance.
URL Parameters
consumer_id
StringThe unique identifier for the consumer
Request Body
name
StringOptionalcurl -X PATCH "https://api.metorial.com/consumers/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","email": "example_email"}'
List consumer profiles
Returns a paginated list of profiles for a consumer in an instance.
URL Parameters
consumer_id
StringThe unique identifier for the consumer
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/consumers/con_Rm4Mnheq2bfEPhBhP7SY/profiles" \-H "Authorization: Bearer metorial_sk_..."
Get consumer profile
Retrieves a consumer profile by ID for a consumer.
URL Parameters
consumer_id
StringThe unique identifier for the consumer
consumer_profile_id
StringThe unique identifier for the consumer_profile
curl -X GET "https://api.metorial.com/consumers/con_Rm4Mnheq2bfEPhBhP7SY/profiles/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."