Create Deck
curl --request POST \
--url https://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"
}
'import requests
url = "https://api.attention.tech/v2/create_deck"
payload = {
"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"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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'
})
};
fetch('https://api.attention.tech/v2/create_deck', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.attention.tech/v2/create_deck",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.attention.tech/v2/create_deck"
payload := strings.NewReader("{\n \"context_id\": \"deal_123\",\n \"users_to_share\": [\n \"user1@example.com\",\n \"user2@example.com\"\n ],\n \"deck_type\": \"sales_presentation\",\n \"slides\": 10,\n \"structure\": [\n {\n \"layout_instruction\": \"Use a two-column layout\",\n \"content_instruction\": \"Include key metrics and competitor analysis\"\n }\n ],\n \"additional_instructions\": \"Focus on enterprise features and ROI\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.attention.tech/v2/create_deck")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"context_id\": \"deal_123\",\n \"users_to_share\": [\n \"user1@example.com\",\n \"user2@example.com\"\n ],\n \"deck_type\": \"sales_presentation\",\n \"slides\": 10,\n \"structure\": [\n {\n \"layout_instruction\": \"Use a two-column layout\",\n \"content_instruction\": \"Include key metrics and competitor analysis\"\n }\n ],\n \"additional_instructions\": \"Focus on enterprise features and ROI\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/create_deck")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"context_id\": \"deal_123\",\n \"users_to_share\": [\n \"user1@example.com\",\n \"user2@example.com\"\n ],\n \"deck_type\": \"sales_presentation\",\n \"slides\": 10,\n \"structure\": [\n {\n \"layout_instruction\": \"Use a two-column layout\",\n \"content_instruction\": \"Include key metrics and competitor analysis\"\n }\n ],\n \"additional_instructions\": \"Focus on enterprise features and ROI\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"link": "https://example.com/deck/123",
"error": "",
"emails_shared_with": [
"user1@example.com",
"user2@example.com"
]
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Tool
Create Deck
Generates presentation decks based on conversations, deals, or other content. This endpoint creates structured presentations with key insights and data visualizations.
POST
/
create_deck
Create Deck
curl --request POST \
--url https://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"
}
'import requests
url = "https://api.attention.tech/v2/create_deck"
payload = {
"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"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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'
})
};
fetch('https://api.attention.tech/v2/create_deck', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.attention.tech/v2/create_deck",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.attention.tech/v2/create_deck"
payload := strings.NewReader("{\n \"context_id\": \"deal_123\",\n \"users_to_share\": [\n \"user1@example.com\",\n \"user2@example.com\"\n ],\n \"deck_type\": \"sales_presentation\",\n \"slides\": 10,\n \"structure\": [\n {\n \"layout_instruction\": \"Use a two-column layout\",\n \"content_instruction\": \"Include key metrics and competitor analysis\"\n }\n ],\n \"additional_instructions\": \"Focus on enterprise features and ROI\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.attention.tech/v2/create_deck")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"context_id\": \"deal_123\",\n \"users_to_share\": [\n \"user1@example.com\",\n \"user2@example.com\"\n ],\n \"deck_type\": \"sales_presentation\",\n \"slides\": 10,\n \"structure\": [\n {\n \"layout_instruction\": \"Use a two-column layout\",\n \"content_instruction\": \"Include key metrics and competitor analysis\"\n }\n ],\n \"additional_instructions\": \"Focus on enterprise features and ROI\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/create_deck")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"context_id\": \"deal_123\",\n \"users_to_share\": [\n \"user1@example.com\",\n \"user2@example.com\"\n ],\n \"deck_type\": \"sales_presentation\",\n \"slides\": 10,\n \"structure\": [\n {\n \"layout_instruction\": \"Use a two-column layout\",\n \"content_instruction\": \"Include key metrics and competitor analysis\"\n }\n ],\n \"additional_instructions\": \"Focus on enterprise features and ROI\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"link": "https://example.com/deck/123",
"error": "",
"emails_shared_with": [
"user1@example.com",
"user2@example.com"
]
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Authorizations
Body
application/jsonapplication/vnd.api+json
Request containing the content and parameters for deck generation
Was this page helpful?
⌘I