Sine API Documentation
Workflow Responses
Get responses by team ID
1 min
code examples curl location globoff 'https //openapi sine co/v1/api/workflows/response/team/{teamid}?limit=100\&includesites=boolean' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x sine team id string\<uuid>'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x sine team id", "string\<uuid>"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //openapi sine co/v1/api/workflows/response/team/{teamid}?limit=100\&includesites=boolean", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //openapi sine co/v1/api/workflows/response/team/{teamid}?limit=100\&includesites=boolean") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x sine team id"] = "string\<uuid>" response = https request(request) puts response read body import requests import json url = "https //openapi sine co/v1/api/workflows/response/team/{teamid}?limit=100\&includesites=boolean" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x sine team id' 'string\<uuid>' } response = requests request("get", url, headers=headers, data=payload) print(response text) \<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //openapi sine co/v1/api/workflows/response/team/{teamid}?limit=100\&includesites=boolean', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'get', curlopt httpheader => array( 'accept application/json', 'content type application/json', 'x sine team id string\<uuid>' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // ok { "results" \[ { "responseid" "5ac705fa211700000539cb25", "responseuuid" "f03cd429 9e80 4fdd bd9a d9dcbb2417fb", "workflowid" "5ac705fa211700000539cb25", "workflowuuid" "f03cd429 9e80 4fdd bd9a d9dcbb2417fb", "teamid" "", "uniqueidentifier" "", "state" "accepted", "startdate" "2020 12 30t04 48 51 438z", "enddate" "2020 12 30t04 48 51 438z", "expirydate" "2020 12 30t04 48 51 438z", "workflowname" "", "isautoapproved" false, "companydetails" { "name" "" }, "approvedby" \[ { "action" "", "state" "", "firstname" "", "lastname" "", "email" "", "date" "", "message" "" } ], "rejectedby" \[ { "action" "", "state" "", "firstname" "", "lastname" "", "email" "", "date" "", "message" "" } ], "note" "", "tags" \[ { "name" "" } ], "applicants" \[ { "isprimaryapplicant" false, "firstname" "", "lastname" "", "email" "", "mobile" "", "company" "" } ], "sites" \[ { "id" "", "name" "", "address" "" } ], "forms" \[ { "formresponseid" "", "type" "", "userdetails" { "firstname" "", "lastname" "", "email" "", "mobile" "", "company" "" } } ], "createdat" "2020 12 30t04 48 51 438z", "updatedat" "2020 12 30t04 48 51 438z" } ], "next" "" }// bad request { "code" "bad request", "message" "the request is invalid" }// unauthorized { "code" "unauthorized", "message" "the access token is invalid or has expired" }// forbidden { "code" "forbidden", "message" "you are not allowed to access this information" }// resource not found { "code" "route not found", "message" "no route matched with those values" }// service dependency failed { "code" "consumer error", "message" "unexpected error while communicating with downstream service, please try again" }// too many requests { "code" "too many requests", "message" "api calling rate limit exceeded! please try again later or contact sine support team" }// internal server error { "code" "internal server error", "message" "something went wrong, please try again later" }