cURL
curl --request POST \
--url 'https://www.rainbrand.com/api/v1/briefs' \
--header "x-api-key: $RAINBRAND_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"brandSessionId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"task": "A landscape launch image for Acme Inc. Atlas Pro. Center the product and include the headline \"Meet Atlas Pro\" and the call to action \"Explore Atlas Pro\"."
}'{
"data": {
"id": "657bcf79-1f2f-47fa-90f8-9245142980ed",
"status": "pending"
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"status": 402,
"message": "Not enough credits to create a brief",
"data": {
"action_url": "<string>",
"credits_required": 123,
"balance": 123,
"pricing_version": 0
}
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_NOT_FOUND",
"status": 404,
"message": "Brand not found.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_SKILL_UNAVAILABLE",
"status": 409,
"message": "This brand is not ready for briefs yet",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"status": 500,
"message": "Failed to create brief",
"data": "<unknown>"
}
}Briefs
Request a Brief
Prepare brand guidance and selected assets for a specific task. Retrieve the result with Get a Brief.
POST
/
briefs
cURL
curl --request POST \
--url 'https://www.rainbrand.com/api/v1/briefs' \
--header "x-api-key: $RAINBRAND_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"brandSessionId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"task": "A landscape launch image for Acme Inc. Atlas Pro. Center the product and include the headline \"Meet Atlas Pro\" and the call to action \"Explore Atlas Pro\"."
}'{
"data": {
"id": "657bcf79-1f2f-47fa-90f8-9245142980ed",
"status": "pending"
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"status": 402,
"message": "Not enough credits to create a brief",
"data": {
"action_url": "<string>",
"credits_required": 123,
"balance": 123,
"pricing_version": 0
}
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_NOT_FOUND",
"status": 404,
"message": "Brand not found.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_SKILL_UNAVAILABLE",
"status": 409,
"message": "This brand is not ready for briefs yet",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"status": 500,
"message": "Failed to create brief",
"data": "<unknown>"
}
}Authorizations
apiKeybeareroauth
Headers
Body
application/json
Was this page helpful?