POST
/
create_deck
curl --request POST \
  --url http://api.attention.tech/v2/create_deck \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "context_id": "deal_123",
  "users_to_share": [
    "user1@example.com",
    "user2@example.com"
  ],
  "deck_type": "sales_presentation",
  "slides": 10,
  "structure": [
    {
      "layout_instruction": "Use a two-column layout",
      "content_instruction": "Include key metrics and competitor analysis"
    }
  ],
  "additional_instructions": "Focus on enterprise features and ROI"
}'
{
  "success": true,
  "link": "https://example.com/deck/123",
  "error": "",
  "emails_shared_with": [
    "user1@example.com",
    "user2@example.com"
  ]
}

Authorizations

Authorization
string
header
required

Body

Request containing the content and parameters for deck generation

The body is of type object.

Response

200
application/json

Deck successfully generated and ready for use

The response is of type object.