Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.hightouch.com/api/v1/syncs/{syncId}/drafts \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.hightouch.com/api/v1/syncs/{syncId}/drafts" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.hightouch.com/api/v1/syncs/{syncId}/drafts', 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.hightouch.com/api/v1/syncs/{syncId}/drafts", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer <token>" ], ]); $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.hightouch.com/api/v1/syncs/{syncId}/drafts" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer <token>") 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.hightouch.com/api/v1/syncs/{syncId}/drafts") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://api.hightouch.com/api/v1/syncs/{syncId}/drafts") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>' response = http.request(request) puts response.read_body
{ "data": [ { "id": "<string>", "syncId": "<string>", "operation": "create", "status": "pending", "requestedBy": { "id": 123, "name": "<string>", "email": "<string>" }, "requestedApprovers": [ { "id": 123, "name": "<string>", "email": "<string>" } ], "requestComment": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "reviewedBy": { "id": 123, "name": "<string>", "email": "<string>" }, "reviewedAt": "2023-11-07T05:31:56Z", "reviewMetadata": { "extId": "<string>" } } ], "nextCursor": "<string>" }
{ "message": "Validation failed", "details": {} }
List one sync’s drafts, oldest change first.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The id of the sync
filter on the draft's status (default pending) The state of a sync draft. New values may be added, so treat an unknown value as closed.
pending
approved
rejected
canceled
only drafts changed at or after this ISO timestamp
the most drafts to return on a page, from 1 to 100 (default 100)
the nextCursor from the previous page
nextCursor
Ok
Show child attributes
Pass as cursor to read the next page; null on the last page. A page can hold fewer than limit drafts and still have a next page.
cursor
limit
Was this page helpful?