Sine API Documentation
Passes
Get inactive passes for a team
1 min
code examples curl location request post 'https //openapi sine co/v1/api/passes/?limit=100' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("https //openapi sine co/v1/api/passes/?limit=100", 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/passes/?limit=100") 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" response = https request(request) puts response read body import requests import json url = "https //openapi sine co/v1/api/passes/?limit=100" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } 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/passes/?limit=100', 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' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // ok { "records" \[ { "firstname" "example", "lastname" "person", "email" "e person\@example com", "mobile" "+61 491 570 006", "company" "exampleco", "passtype" "visitor", "entrytype" "sineweb", "site" "exampleco hq", "duration" 452, "issuedtime" "08 35 02", "issueddate" "21/12/2025", "status" "checked out", "pendingtime" 60, "acceptedorrejectedtime" "09 35 02", "acceptedorrejectedby" "a person\@example com", "checkouttime" "17 06 54", "checkoutdate" "21/12/2025", "hostfirstname" "example", "hostlastname" "host", "hostgroup" "management", "zone" "gn 1", "notes" "swipe card provided", "checkinformresponses" \[ { "label" "", "value" "" } ], "signoutformresponses" \[ { "label" "", "value" "" } ] } ], "next" "eyjhbgcioijiuzi1niisinr5cci6ikpxvcisimtpzci6ijiwmjewoteyncj9 eyjzy29wzsi6ijzob0pidnfzq0xvvnrtqjm5qvgwew04s1fhqt0ilcj2ywx1zsi6eyjtb2rlijoia2v5c2v0iiwibmv4dci6ikpuzenkvel5ykdsdgfyuwxnaklsttbfeepuskrkvel5ytjwnveyoxnkvzf1vg1gdfpytwxnaklsttbfbe5vswxnakp6zedgewrfumhkr1vstwpjbe1rtwxnakpwwknveu1pvtfsq1v5uxlveu1tdgxlvlpoykhwbgn5vxlnavv6uvnvmvfpvxlnakl3twpvde1uqxrnakpvturnbe0wrxhnevv6uvrveuxqutbpvm9stwpjbe1rtwxnakl6t1rzee9uzzvoqzfowmpfm0xuuxdpr1l0wvdsae1tmwxprgs1wtjgae5ewmxavgnstwpjbe5vuwxna01stwpkdmnhvnlzwfj2y2lveu1pvxpru1v5tw14mepusxlkvepeslrjewmyoxlkrvjwy21wamrhbhziavv5twlvelftvxlna1jgvtbnbe1qswxomfe9in0simlhdci6mtc2mtewmzixmiwizxhwijoxnzyxmtg5njeyfq gatx pbb9jsidlkmntvspngllbtmpubco baqpxa fi" }// 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" }