Link to place signature boxes in your iframe (draft only)
Returns a 15-minute URL (/embed/placement/<token>) for an iframe on an origin allowed in Settings → Integration. The page posts econtract:placement_saved (and econtract:submitted with submitOnSave) to the parent window.
API key cl_live_… or OAuth access token eco_at_… in Authorization: Bearer. Public operations (x-econtract-auth: public) need no credential.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://api.econtract.online/api/v1/contracts/string/placement-sessions" \ -H "Content-Type: application/json" \ -d '{}'Code Examples
curl -X POST "https://api.econtract.online/api/v1/contracts/abc123/placement-sessions" \
-H "Authorization: Bearer cl_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"submitOnSave": true,
"delivery": "email"
}'const res = await fetch("https://api.econtract.online/api/v1/contracts/abc123/placement-sessions", {
method: "POST",
headers: {
"Authorization": "Bearer cl_live_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
"submitOnSave": true,
"delivery": "email"
}),
}).then(r => r.json());
console.log(res);import requests
res = requests.post(
"https://api.econtract.online/api/v1/contracts/abc123/placement-sessions",
headers={"Authorization": "Bearer cl_live_your_key_here"},
json={
"submitOnSave": True,
"delivery": "email",
},
).json()
print(res)package main
import (
"fmt"
"io"
"net/http"
"bytes"
"encoding/json"
)
func main() {
payload, _ := json.Marshal(map[string]interface{}{
"submitOnSave": true,
"delivery": "email",
})
req, _ := http.NewRequest("POST", "https://api.econtract.online/api/v1/contracts/abc123/placement-sessions", bytes.NewBuffer(payload))
req.Header.Set("Authorization", "Bearer cl_live_your_key_here")
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.econtract.online/api/v1/contracts/abc123/placement-sessions");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer cl_live_your_key_here",
"Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'submitOnSave' => true,
'delivery' => 'email',
]));
$response = curl_exec($ch);
curl_close($ch);
echo $response;import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
String jsonBody = "{\"submitOnSave\":true,\"delivery\":\"email\"}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.econtract.online/api/v1/contracts/abc123/placement-sessions"))
.header("Authorization", "Bearer cl_live_your_key_here")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(jsonBody))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer cl_live_your_key_here");
var json = @"{
""submitOnSave"": true,
""delivery"": ""email""
}";
var content = new StringContent(json, System.Text.Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://api.econtract.online/api/v1/contracts/abc123/placement-sessions", content);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);Change the email of a signer who has not signed yet
For a typo, a bounced invitation or the wrong person. Links sent to the old address stop working, the change is added to the audit trail, and the new address is invited at once if the signer had already been invited.
Delete contract (draft only)
Next Page