Consumer Session

Consumer Session object

Attributes

object

String

Type of the object, fixed as consumer.server_request

id

String

The unique identifier of the consumer server request

server

Object

consumer

Object

reason

String

The reason provided by the consumer for making this server request

rejection_reason

StringNullable

The reason provided by the administrator for rejecting this server request, or null if not rejected

status

Enum

The current status of the consumer server request

created_at

Date

The ISO 8601 timestamp when the consumer server request was created

updated_at

Date

The 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

String

reason

String
POSThttp://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

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional

server_id

UnionOptional
GEThttp://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

String

The 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_..."