curl --request GET \
--url https://api.example.com/environments \
--header 'Authorization: Bearer <token>'{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"timezone": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"type": "trial",
"state": "provisioning",
"updatedAt": "2023-11-07T05:31:56Z",
"address": {
"street1": "<string>",
"street2": "<string>",
"postalCode": "<string>",
"city": "<string>",
"county": "<string>",
"country": "<string>",
"state": "<string>"
}
}
]
}Returns a list of environments the user has access to.
curl --request GET \
--url https://api.example.com/environments \
--header 'Authorization: Bearer <token>'{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"timezone": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"type": "trial",
"state": "provisioning",
"updatedAt": "2023-11-07T05:31:56Z",
"address": {
"street1": "<string>",
"street2": "<string>",
"postalCode": "<string>",
"city": "<string>",
"county": "<string>",
"country": "<string>",
"state": "<string>"
}
}
]
}OK
Show child attributes
Was this page helpful?