Sine API Documentation
Invitations
Search Invitations by host email
1 min
code examples curl location request post 'https //openapi sine co/v1/api/invitations/search/host?limit=10\&offset=number\&sort=asc\&order=startdate' \\ \ 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 'post', headers myheaders, redirect 'follow' }; fetch("https //openapi sine co/v1/api/invitations/search/host?limit=10\&offset=number\&sort=asc\&order=startdate", 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/invitations/search/host?limit=10\&offset=number\&sort=asc\&order=startdate") https = net http new(url host, url port) https use ssl = true request = net http post 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/invitations/search/host?limit=10\&offset=number\&sort=asc\&order=startdate" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x sine team id' 'string\<uuid>' } response = requests request("post", 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/invitations/search/host?limit=10\&offset=number\&sort=asc\&order=startdate', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'post', 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 // active invitations that matched host email { "meta" { "totalresults" 0 }, "data" \[ { "id" "019fe2b4 f2ee 4a19 873d ddb4f014dfce", "firstname" "james", "lastname" "bond", "visitortype" { "id" "019fe2b4 f2ee 4a19 873d ddb4f014dfce", "name" "delivery" }, "startdate" "2021 09 20t11 00 00 000z", "enddate" "2021 09 22t09 00 00 000z", "site" { "id" "019fe2b4 f2ee 4a19 873d ddb4f014dfce", "name" "sine", "address" "100 pirie st, adelaide sa 5000", "latitude" 34 925, "longitude" 138 604 }, "email" "james bond\@sine co", "mobile" "+61405107480", "subject" "invitation subject", "host" { "id" "079fe2b4 f2ee 4a19 873d ddb4f014dfce", "firstname" "example", "lastname" "person", "hostgroupname" "staff", "email" "e person\@example com" }, "adminnotes" "a message for admin", "visitornotes" "a message to guest", "updated" "2021 09 22t09 00 00 000z", "fasttrackcode" "12332", "emailsent" true, "emailremindertime" "2021 09 22t09 00 00 000z", "created" "2021 09 22t09 00 00 000z", "cancelled" "2021 09 22t09 00 00 000z", "actioned" false, "activepasscount" 1, "company" { "id" "", "name" "" } } ] }// 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" }