curl --request POST \
--url https://api.eddy.engineer/v1/ideate.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"brief": {
"product": "<string>",
"anchor": "<string>",
"constraints": [
"<string>"
],
"intent": "<string>",
"views": [
"<string>"
]
},
"created_at": "<string>",
"uploads": [
{
"blob_id": "<string>",
"kind": "sketch"
}
],
"inline": false,
"mode": "clean",
"reading_key": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/ideate.import"
payload = {
"brief": {
"product": "<string>",
"anchor": "<string>",
"constraints": ["<string>"],
"intent": "<string>",
"views": ["<string>"]
},
"created_at": "<string>",
"uploads": [
{
"blob_id": "<string>",
"kind": "sketch"
}
],
"inline": False,
"mode": "clean",
"reading_key": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
brief: {
product: '<string>',
anchor: '<string>',
constraints: ['<string>'],
intent: '<string>',
views: ['<string>']
},
created_at: '<string>',
uploads: [{blob_id: '<string>', kind: 'sketch'}],
inline: false,
mode: 'clean',
reading_key: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/ideate.import', 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.eddy.engineer/v1/ideate.import",
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([
'brief' => [
'product' => '<string>',
'anchor' => '<string>',
'constraints' => [
'<string>'
],
'intent' => '<string>',
'views' => [
'<string>'
]
],
'created_at' => '<string>',
'uploads' => [
[
'blob_id' => '<string>',
'kind' => 'sketch'
]
],
'inline' => false,
'mode' => 'clean',
'reading_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.eddy.engineer/v1/ideate.import"
payload := strings.NewReader("{\n \"brief\": {\n \"product\": \"<string>\",\n \"anchor\": \"<string>\",\n \"constraints\": [\n \"<string>\"\n ],\n \"intent\": \"<string>\",\n \"views\": [\n \"<string>\"\n ]\n },\n \"created_at\": \"<string>\",\n \"uploads\": [\n {\n \"blob_id\": \"<string>\",\n \"kind\": \"sketch\"\n }\n ],\n \"inline\": false,\n \"mode\": \"clean\",\n \"reading_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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.eddy.engineer/v1/ideate.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"brief\": {\n \"product\": \"<string>\",\n \"anchor\": \"<string>\",\n \"constraints\": [\n \"<string>\"\n ],\n \"intent\": \"<string>\",\n \"views\": [\n \"<string>\"\n ]\n },\n \"created_at\": \"<string>\",\n \"uploads\": [\n {\n \"blob_id\": \"<string>\",\n \"kind\": \"sketch\"\n }\n ],\n \"inline\": false,\n \"mode\": \"clean\",\n \"reading_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/ideate.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"brief\": {\n \"product\": \"<string>\",\n \"anchor\": \"<string>\",\n \"constraints\": [\n \"<string>\"\n ],\n \"intent\": \"<string>\",\n \"views\": [\n \"<string>\"\n ]\n },\n \"created_at\": \"<string>\",\n \"uploads\": [\n {\n \"blob_id\": \"<string>\",\n \"kind\": \"sketch\"\n }\n ],\n \"inline\": false,\n \"mode\": \"clean\",\n \"reading_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}{}A board from the user's own pictures: a hand sketch, a render or a photo, one or more, each tagged with its view (V3.d)
Upload each picture first (POST /v1/blobs, PNG or JPEG — sniffed from the bytes, REFERENCE_MEDIA otherwise) and name its view and kind (sketch default, render, photo). mode: as_drawn makes the pictures the board’s images at <view>-1 — nothing is drawn, the same pictures and brief give the same board. mode: clean (default) redraws each picture through the boundary-class image generator conditioned on it (the vary mechanism: the same product, the same viewpoint, rough lines made clean) then (V3.d.b) draws an iso BRIDGE from the anchor’s redraw unless an iso was supplied, and every other missing view (the brief’s views, default front / side / top) from the bridge alone, a principal view with its turn in words (a flat elevation alone made the generator copy it); the anchor is the brief’s anchor, a supplied view (default the first picture); without a generator key each position is the FIXTURE card. Either way the result is an ordinary content-addressed ideation_board: imported records the mode, the kinds and the pictures as supplied (<view>-supplied, provider upload), and ideate.mesh / vary / adopt / handoff take it as they take any board. A picture is inspiration, never geometry. IDEATE_IMPORT names a bad mode / kind / count (1..=6) / a second variant / an as-drawn view that was not supplied; IDEATE_VIEW, IDEATE_ANCHOR, IDEATE_GRAMMAR as on ideate.board; IDEATE_GENERATOR (502) when nothing landed.
curl --request POST \
--url https://api.eddy.engineer/v1/ideate.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"brief": {
"product": "<string>",
"anchor": "<string>",
"constraints": [
"<string>"
],
"intent": "<string>",
"views": [
"<string>"
]
},
"created_at": "<string>",
"uploads": [
{
"blob_id": "<string>",
"kind": "sketch"
}
],
"inline": false,
"mode": "clean",
"reading_key": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/ideate.import"
payload = {
"brief": {
"product": "<string>",
"anchor": "<string>",
"constraints": ["<string>"],
"intent": "<string>",
"views": ["<string>"]
},
"created_at": "<string>",
"uploads": [
{
"blob_id": "<string>",
"kind": "sketch"
}
],
"inline": False,
"mode": "clean",
"reading_key": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
brief: {
product: '<string>',
anchor: '<string>',
constraints: ['<string>'],
intent: '<string>',
views: ['<string>']
},
created_at: '<string>',
uploads: [{blob_id: '<string>', kind: 'sketch'}],
inline: false,
mode: 'clean',
reading_key: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/ideate.import', 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.eddy.engineer/v1/ideate.import",
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([
'brief' => [
'product' => '<string>',
'anchor' => '<string>',
'constraints' => [
'<string>'
],
'intent' => '<string>',
'views' => [
'<string>'
]
],
'created_at' => '<string>',
'uploads' => [
[
'blob_id' => '<string>',
'kind' => 'sketch'
]
],
'inline' => false,
'mode' => 'clean',
'reading_key' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.eddy.engineer/v1/ideate.import"
payload := strings.NewReader("{\n \"brief\": {\n \"product\": \"<string>\",\n \"anchor\": \"<string>\",\n \"constraints\": [\n \"<string>\"\n ],\n \"intent\": \"<string>\",\n \"views\": [\n \"<string>\"\n ]\n },\n \"created_at\": \"<string>\",\n \"uploads\": [\n {\n \"blob_id\": \"<string>\",\n \"kind\": \"sketch\"\n }\n ],\n \"inline\": false,\n \"mode\": \"clean\",\n \"reading_key\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<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.eddy.engineer/v1/ideate.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"brief\": {\n \"product\": \"<string>\",\n \"anchor\": \"<string>\",\n \"constraints\": [\n \"<string>\"\n ],\n \"intent\": \"<string>\",\n \"views\": [\n \"<string>\"\n ]\n },\n \"created_at\": \"<string>\",\n \"uploads\": [\n {\n \"blob_id\": \"<string>\",\n \"kind\": \"sketch\"\n }\n ],\n \"inline\": false,\n \"mode\": \"clean\",\n \"reading_key\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/ideate.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"brief\": {\n \"product\": \"<string>\",\n \"anchor\": \"<string>\",\n \"constraints\": [\n \"<string>\"\n ],\n \"intent\": \"<string>\",\n \"views\": [\n \"<string>\"\n ]\n },\n \"created_at\": \"<string>\",\n \"uploads\": [\n {\n \"blob_id\": \"<string>\",\n \"kind\": \"sketch\"\n }\n ],\n \"inline\": false,\n \"mode\": \"clean\",\n \"reading_key\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}{}Body
Response
The imported board
The response is of type object.