cURL
curl --request GET \
--url 'https://www.rainbrand.com/api/v1/workspaces' \
--header "x-api-key: $RAINBRAND_API_KEY"{
"data": {
"workspaces": [
{
"id": "nY2c6wA9rK7bM4qV8jT3pL",
"name": "Personal",
"is_personal": true,
"pricing_version": 2
},
{
"id": "Hq7n3kPz6cT4aY9mB2xV8",
"name": "Acme Inc.",
"is_personal": false,
"pricing_version": 2
}
]
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}Account
List workspaces
List your Rainbrand personal account and teams through the API. Find the team ID to manage client brands, stage file uploads and check the right credit balance.
GET
/
workspaces
cURL
curl --request GET \
--url 'https://www.rainbrand.com/api/v1/workspaces' \
--header "x-api-key: $RAINBRAND_API_KEY"{
"data": {
"workspaces": [
{
"id": "nY2c6wA9rK7bM4qV8jT3pL",
"name": "Personal",
"is_personal": true,
"pricing_version": 2
},
{
"id": "Hq7n3kPz6cT4aY9mB2xV8",
"name": "Acme Inc.",
"is_personal": false,
"pricing_version": 2
}
]
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}Was this page helpful?