Skip to main content
POST
/
styles
/
{id}
/
share
/
workspace
Share a style with your workspace
curl --request POST \
  --url https://api.krea.ai/styles/{id}/share/workspace \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "style_id": "<string>",
  "workspace": {
    "id": "<string>",
    "name": "<string>",
    "workspace_type": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

A unique identifier for a style

Example:

"0df7b411-5af8-413c-87bb-67f734ec3141"

Response

Style shared with workspace successfully

Response after sharing a style within a workspace

success
boolean
required

Whether the operation succeeded

style_id
string
required

The ID of the shared style

workspace
object
required

The workspace the style was shared with