Skip to main content

Extract Brand

This endpoint allows Enterprise administrators to automatically extract brand assets, colors, and other brand identity elements from a website URL for a specific user. This is a queue-based API - it returns a requestId that can be used to check the status and retrieve results using the get-request-status API.

Endpoint

POST enterprise/extract-brand

Authentication

Include your Enterprise API credentials in the request headers:

sivi-api-key: YOUR_ENTERPRISE_API_KEY
Enterprise Admin Access Required

This endpoint can only be accessed using an Enterprise Admin API key. Regular API keys do not have sufficient privileges.

Request Parameters

ParameterTypeRequiredDescription
abstractUserIdStringYesUnique identifier for the user
brandUrlStringYesURL of the website to extract brand information from

Request Body Example

{
"abstractUserId": "281743-2322-34i44sd3-dkfjgdkjf292",
"brandUrl": "https://sivi.ai"
}

Response

The API returns a requestId that can be used to check the status and retrieve results:

{
"status": 200,
"body": {
"requestId": "sbhMkIZKCPp",
}
}

Checking Request Status

Use the get-request-status API with the requestId to check the status and get the results:

GET enterprise/get-request-status?queryParams={"requestId":"sbhMkIZKCPp"}

### Final Response Format

Once the request is complete, the get-request-status API will return the following format:

```json
{
"status": 200,
"body": {
"status": "completed",
"requestId": "sbhMkIZKCPp",
"result": {
"brandDetails": {
"brandName": "Sivi",
"brandDescription": "AI design generator for brands and layered vector based design generation",
"brandUrl": "https://sivi.ai",
"brandLogo": "https://sivi.ai/sivi-logo.png",
"brandColors": ["#5662EC", "#EF9AB2"],
"brandFonts": [],
"brandPersona": {
"emotions": ["happy"],
"industry": "games",
"audience": ["working mom", "working dad"],
"designTags": ["minimal", "time management", "productivity", "health"],
}
}
}
}
}

Response Body Parameters

ParameterTypeDescription
brandNameStringExtracted name of the brand
brandDescriptionStringExtracted description or tagline
brandUrlStringOriginal URL provided in the request
brandLogoStringURL to the extracted logo image
brandColorsArrayList of extracted brand colors in hex format
brandFontsArrayList of detected fonts (may be empty if fonts cannot be determined)
brandPersonaObjectBrand persona details
brandPersona.emotionsArrayList of detected emotions
brandPersona.industryStringDetected industry
brandPersona.audienceArrayList of detected target audience
brandPersona.designTagsArrayList of detected design tags

Note:: See all available options for each parameter in the Brand Persona Details section.

Error Responses

User Not Found (400 Bad Request)

{
"status": 400,
"body": {
"message": "User does not exist"
}
}

Authentication Error (401 Unauthorized)

{
"status": 401,
"body": {
"message": "Failed to authenticate request. Please add sivi-api-key header in request"
}
}

Invalid Input (422 Unprocessable Entity)

{
"status": 422,
"body": {
"message": "Invalid input"
}
}

Server Error (500 Internal Server Error)

{
"status": 500,
"body": {
"message": "Server internal error"
}
}

Usage Notes

  • This API analyzes a website to extract brand elements automatically
  • The extracted brand information can be used to set the brand identity for a user or workspace
  • The extraction process uses AI to identify logos, colors, and other brand elements
  • Extraction quality depends on the website's structure and accessibility
  • For best results, provide the homepage or brand guidelines page of the website
  • This API is restricted to Enterprise plan customers with administrative access
  • After extracting brand information, consider using the Set Brand API to apply or modify the extracted brand settings