Consumer Session
Consumer Session object
Attributes
object
StringType of the object, fixed as consumer.server_request
id
StringThe unique identifier of the consumer server request
server
Objectconsumer
Objectreason
StringThe reason provided by the consumer for making this server request
rejection_reason
StringNullableThe reason provided by the administrator for rejecting this server request, or null if not rejected
status
EnumThe current status of the consumer server request
created_at
DateThe ISO 8601 timestamp when the consumer server request was created
updated_at
DateThe ISO 8601 timestamp when the consumer server request was last updated
{"object": "consumer.server_request","server": {"object": "server#preview","type": "public"},"consumer": {"object": "consumer.profile"},"status": "approved"}
Request Body
server_id
Stringreason
StringPOSThttp://api.metorial.com/consumer/server-requests
curl -X POST "https://api.metorial.com/consumer/server-requests" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"server_id": "example_server_id","reason": "example_reason"}'
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalserver_id
UnionOptionalGEThttp://api.metorial.com/consumer/server-requests
curl -X GET "https://api.metorial.com/consumer/server-requests" \-H "Authorization: Bearer metorial_sk_..."
URL Parameters
consumer_server_request_id
StringThe unique identifier for the consumer_server_request
GEThttp://api.metorial.com/consumer/server-requests/:consumer_server_request_id
curl -X GET "https://api.metorial.com/consumer/server-requests/con_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."