cURL
curl --request GET \
--url 'https://www.rainbrand.com/api/v1/account' \
--header "x-api-key: $RAINBRAND_API_KEY"{
"data": {
"email": "developer@acme.com",
"name": "Alex Morgan"
}
}{
"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
Get account
Return basic profile information for the authenticated user. Use it as a whoami check to verify which account the credentials belong to.
GET
/
account
cURL
curl --request GET \
--url 'https://www.rainbrand.com/api/v1/account' \
--header "x-api-key: $RAINBRAND_API_KEY"{
"data": {
"email": "developer@acme.com",
"name": "Alex Morgan"
}
}{
"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?