curl --request GET \
--url https://api.tomorro.com/v2/clauses/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.tomorro.com/v2/clauses/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tomorro.com/v2/clauses/{id}', 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.tomorro.com/v2/clauses/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.tomorro.com/v2/clauses/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tomorro.com/v2/clauses/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tomorro.com/v2/clauses/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Confidentiality",
"description": "Standard confidentiality clause",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"content": [
{
"type": "paragraph",
"children": [
{
"text": "Clause content"
}
]
}
],
"contentText": "Clause content",
"listNumbering": null,
"translations": [
{
"language": "en",
"content": [
{
"type": "paragraph",
"children": [
{
"text": "Clause content"
}
]
}
],
"contentText": "Clause content",
"order": 0
}
],
"languages": [
"en",
"fr"
],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-02T00:00:00.000Z"
}Get clause
Retrieves a single clause with Slate content, plain-text contentText, and per-language translations.
curl --request GET \
--url https://api.tomorro.com/v2/clauses/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.tomorro.com/v2/clauses/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tomorro.com/v2/clauses/{id}', 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.tomorro.com/v2/clauses/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.tomorro.com/v2/clauses/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tomorro.com/v2/clauses/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tomorro.com/v2/clauses/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Confidentiality",
"description": "Standard confidentiality clause",
"organizationId": "550e8400-e29b-41d4-a716-446655440000",
"content": [
{
"type": "paragraph",
"children": [
{
"text": "Clause content"
}
]
}
],
"contentText": "Clause content",
"listNumbering": null,
"translations": [
{
"language": "en",
"content": [
{
"type": "paragraph",
"children": [
{
"text": "Clause content"
}
]
}
],
"contentText": "Clause content",
"order": 0
}
],
"languages": [
"en",
"fr"
],
"createdAt": "2024-01-01T00:00:00.000Z",
"updatedAt": "2024-01-02T00:00:00.000Z"
}Authorizations
API key for authentication. Get your key at https://app.tomorro.com/settings/integrations?integration=api-key
Path Parameters
The unique identifier (UUID) of the clause
"550e8400-e29b-41d4-a716-446655440000"
Response
Clause details with Slate content and contentText
Unique identifier for the clause.
"550e8400-e29b-41d4-a716-446655440000"
The name of the clause.
"Confidentiality"
A short description of the clause.
"Standard confidentiality clause"
The organization this clause belongs to.
"550e8400-e29b-41d4-a716-446655440000"
The raw JSON content of the clause (Slate editor format).
[
{
"type": "paragraph",
"children": [{ "text": "Clause content" }]
}
]
Plain-text rendering of content (Slate → text). Prefer this for LLM / text consumers; use content for rich editing.
"Clause content"
List numbering configuration, if any.
null
Per-language translations of the clause.
Show child attributes
Show child attributes
[
{
"language": "en",
"content": [
{
"type": "paragraph",
"children": [{ "text": "Clause content" }]
}
],
"contentText": "Clause content",
"order": 0
}
]
Languages available for this clause.
["en", "fr"]
Time at which the clause was created. Formatted as an ISO 8601 date-time string.
"2024-01-01T00:00:00.000Z"
Time at which the clause was last updated. Formatted as an ISO 8601 date-time string.
"2024-01-02T00:00:00.000Z"