POST
/
create_deck
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

users_to_share
string[]
required
context_id
string
required
deck_type
string
slides
integer
structure
object[]
additional_instructions
string

Response

Deck successfully generated and ready for use

success
boolean
required
error
string
required
emails_shared_with
string[]
required