Get responses by team ID
1 min
GET
https://openapi.sine.co/v1/api/workflows/response/team/{teamId}
Path Parameters
- teamIdstring<uuid>requiredExampleFormatuuid
Query Parameters
- nextstringDescription
- limitintegerDescriptionDefault100Minimum1Maximum200
- updatedAfterstring<date-time>DescriptionFormatdate-time
- updatedBeforestring<date-time>DescriptionFormatdate-time
- includeSitesbooleanDescriptionDefaultfalse
Header Parameters
- x-sine-team-idstring<uuid>requiredDescriptionFormatuuid
Responses
200
- object
- resultsobject[]
- responseIdstring<uuid>ExampleFormatuuid
- responseUUIDstring<uuid>ExampleFormatuuid
- workflowIdstring<uuid>ExampleFormatuuid
- workflowUUIDstring<uuid>ExampleFormatuuid
- teamIdstring<uuid>Formatuuid
- uniqueIdentifierstring
- statestring<pending | accepted | rejected | invalidated | expired>ExampleAllowedpendingacceptedrejectedinvalidatedexpired
- startDatestring<date-time>ExampleFormatdate-time
- endDatestring<date-time>ExampleFormatdate-time
- expiryDatestring<date-time>ExampleFormatdate-time
- workflowNamestring
- isAutoApprovedboolean
- companyDetailsobject
- namestring
- approvedByobject[]
- actionstring
- statestring<pending | accepted | rejected | invalidated | expired>Allowedpendingacceptedrejectedinvalidatedexpired
- firstNamestring
- lastNamestring
- emailstring<email>Formatemail
- datestring<date-time>Formatdate-time
- messagestring
- rejectedByobject[]
- actionstring
- statestring<pending | accepted | rejected | invalidated | expired>Allowedpendingacceptedrejectedinvalidatedexpired
- firstNamestring
- lastNamestring
- emailstring<email>Formatemail
- datestring<date-time>Formatdate-time
- messagestring
- notestring
- tagsobject[]
- namestring
- applicantsobject[]
- isPrimaryApplicantboolean
- firstNamestring
- lastNamestring
- emailstring<email>Formatemail
- mobilestring
- companystring
- sitesobject[]
- idstring
- namestring
- addressstring
- formsobject[]
- formResponseIdstring<uuid>Formatuuid
- typestring
- userDetailsobject
- firstNamestring
- lastNamestring
- emailstring<email>Formatemail
- mobilestring
- companystring
- answersobject[]Description
- idstringDescription
- valueDescription
- createdAtstring<date-time>ExampleFormatdate-time
- updatedAtstring<date-time>ExampleFormatdate-time
- nextstringDescription
400
- objectExample
{ "code": "BAD_REQUEST", "message": "The request is invalid" }- codestringExampleDescription
- messagestringExampleDescription
401
- objectExample
{ "code": "UNAUTHORIZED", "message": "Invalid authentication credentials" }- codestringExampleDescription
- messagestringExampleDescription
403
- objectExample
{ "code": "FORBIDDEN", "message": "You are not allowed to access this information" }- codestringExampleDescription
- messagestringExampleDescription
404
- objectExample
{ "code": "SITE_NOT_FOUND", "message": "SiteNotFoundError" }- codestringExampleDescription
- messagestringExampleDescription
424
- objectExample
{ "code": "CONSUMER_ERROR", "message": "Unexpected error while communicating with downstream service, please try again" }- codestringExampleDescription
- messagestringExampleDescription
429
- objectExample
{ "code": "RATE_LIMITED", "message": "API rate limit exceeded" }- codestringExampleDescription
- messagestringExampleDescription
500
- objectExample
{ "code": "INTERNAL_SERVER_ERROR", "message": "Something went wrong, please try again later" }- codestringExampleDescription
- messagestringExampleDescription
curl
curl --request GET \
--url 'https://openapi.sine.co/v1/api/workflows/response/team/{teamId}?limit=100&includeSites=boolean' \
--header 'accept: application/json' \
--header 'x-sine-team-id: string<uuid>'javascript
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));python
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)
200
// 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": ""
},
"answers": [
{
"id": "",
"value": ""
}
]
}
],
"createdAt": "2020-12-30T04:48:51.438Z",
"updatedAt": "2020-12-30T04:48:51.438Z"
}
],
"next": ""
}400
// Bad request
{
"code": "BAD_REQUEST",
"message": "The request is invalid"
}401
// Unauthorized
{
"code": "UNAUTHORIZED",
"message": "Invalid authentication credentials"
}403
// Forbidden
{
"code": "FORBIDDEN",
"message": "You are not allowed to access this information"
}404
// Resource not found
{
"code": "SITE_NOT_FOUND",
"message": "SiteNotFoundError"
}424
// Service dependency failed
{
"code": "CONSUMER_ERROR",
"message": "Unexpected error while communicating with downstream service, please try again"
}429
// Too many requests
{
"code": "RATE_LIMITED",
"message": "API rate limit exceeded"
}500
// Internal server error
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Something went wrong, please try again later"
}