---
title: Get inactive passes for a team
slug: api/preview/get-inactive-passes-for-a-team
docTags: 
createdAt: 2026-03-23T03:22:37.758Z
---

{
  "id": "IS1WesR9pgEFIZuyCvGWD",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://openapi.sine.co/v1/api/passes/",
    "servers": [
      {
        "url": "https://openapi.sine.co/v1/api/passes/",
        "description": "Sine Public API"
      }
    ],
    "name": "Get inactive passes for a team",
    "description": "<p>Get inactive (checked-out or expired) passes from a team with an optional date range and list of site IDs</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        },
        {
          "kind": "required",
          "name": "x-sine-team-id",
          "type": "string<uuid>",
          "description": "The UUID of the Team",
          "format": "uuid"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "limit",
          "type": "integer",
          "description": "Number of results per page",
          "default": 100,
          "minimum": 1,
          "maximum": 1000
        },
        {
          "kind": "optional",
          "name": "next",
          "type": "string",
          "description": "Token for pagination"
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "Optional filters for the request",
          "schema": [
            {
              "name": "startDate",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Only return passes created after this date. This can be up to 1 year in the past. Defaults to 2 weeks ago if not specified.",
              "example": "2025-09-01T06:00:00.000Z",
              "format": "date-time"
            },
            {
              "name": "endDate",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Only return passes created before this date. Defaults to now if not specified.",
              "example": "2025-10-01T18:00:00.000Z",
              "format": "date-time"
            },
            {
              "name": "siteIds",
              "kind": "optional",
              "type": "array",
              "description": "Filter passes to specific sites. Defaults to all sites for the team if not specified.",
              "example": "",
              "itemType": "uuid",
              "customType": "uuid[]",
              "itemExample": "751211ab-9d92-4603-bbe8-9a3501ec9f13",
              "itemDefault": ""
            },
            {
              "name": "includeFormResponses",
              "kind": "optional",
              "type": "boolean",
              "description": "<p>Include check-in and sign-out form responses for each pass. Defaults to false.</p>",
              "default": false
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "bearerAuth",
          "kind": "optional",
          "type": "http",
          "description": "<p>To obtain a token, call <code>POST /oauth2/token</code> with your <code>client_id</code> and <code>client_secret</code>. The returned <code>access_token</code> is then used as a Bearer token for all subsequent requests.</p>",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "records",
                "kind": "optional",
                "type": "array",
                "description": "",
                "example": "",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "firstName",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Example"
                  },
                  {
                    "name": "lastName",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Person"
                  },
                  {
                    "name": "email",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "e.person@example.com"
                  },
                  {
                    "name": "mobile",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "+61 491 570 006"
                  },
                  {
                    "name": "company",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "ExampleCo"
                  },
                  {
                    "name": "passType",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Visitor"
                  },
                  {
                    "name": "entryType",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "SineWeb"
                  },
                  {
                    "name": "site",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "ExampleCo HQ"
                  },
                  {
                    "name": "duration",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": 452
                  },
                  {
                    "name": "issuedTime",
                    "kind": "optional",
                    "type": "string<time>",
                    "description": "",
                    "example": "08:35:02",
                    "format": "time"
                  },
                  {
                    "name": "issuedDate",
                    "kind": "optional",
                    "type": "string<date>",
                    "description": "",
                    "example": "21/12/2025",
                    "format": "date"
                  },
                  {
                    "name": "status",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "checked out"
                  },
                  {
                    "name": "pendingTime",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": 60
                  },
                  {
                    "name": "acceptedOrRejectedTime",
                    "kind": "optional",
                    "type": "string<time>",
                    "description": "",
                    "example": "09:35:02",
                    "format": "time"
                  },
                  {
                    "name": "acceptedOrRejectedBy",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "a.person@example.com"
                  },
                  {
                    "name": "checkoutTime",
                    "kind": "optional",
                    "type": "string<time>",
                    "description": "",
                    "example": "17:06:54",
                    "format": "time"
                  },
                  {
                    "name": "checkoutDate",
                    "kind": "optional",
                    "type": "string<date>",
                    "description": "",
                    "example": "21/12/2025",
                    "format": "date"
                  },
                  {
                    "name": "hostFirstName",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Example"
                  },
                  {
                    "name": "hostLastName",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Host"
                  },
                  {
                    "name": "hostGroup",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Management"
                  },
                  {
                    "name": "zone",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "GN.1"
                  },
                  {
                    "name": "notes",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Swipe card provided"
                  },
                  {
                    "name": "checkInFormResponses",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "label",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "value",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  },
                  {
                    "name": "signOutFormResponses",
                    "kind": "optional",
                    "type": "array",
                    "description": "",
                    "example": "",
                    "itemType": "object",
                    "customType": "object[]",
                    "schema": [
                      {
                        "name": "label",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      },
                      {
                        "name": "value",
                        "kind": "optional",
                        "type": "string",
                        "description": ""
                      }
                    ]
                  }
                ]
              },
              {
                "name": "next",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "Token for retrieving the next page of results",
                "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjIwMjEwOTEyNCJ9.eyJzY29wZSI6IjZOb0pidnFzQ0xvVnRTQjM5QVgweW04S1FhQT0iLCJ2YWx1ZSI6eyJtb2RlIjoia2V5c2V0IiwibmV4dCI6IkpUZENKVEl5YkdsdGFYUWxNaklsTTBFeEpUSkRKVEl5YTJWNVEyOXNkVzF1VG1GdFpYTWxNaklsTTBFbE5VSWxNakp6ZEdGeWRFUmhkR1VsTWpJbE1rTWxNakpwWkNVeU1pVTFSQ1V5UXlVeU1tdGxlVlpoYkhWbGN5VXlNaVV6UVNVMVFpVXlNakl3TWpVdE1UQXRNakpVTURNbE0wRXhNeVV6UVRVeUxqUTBPVm9sTWpJbE1rTWxNakl6T1RZeE9UZzVOQzFoWmpFM0xUUXdPR1l0WVdSaE1TMWxPRGs1WTJGaE5EWmxaVGNsTWpJbE5VUWxNa01sTWpKdmNHVnlZWFJ2Y2lVeU1pVXpRU1V5TW14MEpUSXlKVEpESlRJeWMyOXlkRVJwY21WamRHbHZiaVV5TWlVelFTVXlNa1JGVTBNbE1qSWxOMFE9In0sImlhdCI6MTc2MTEwMzIxMiwiZXhwIjoxNzYxMTg5NjEyfQ.Gatx-pBB9jsiDlkMnTVsPNGlLbTmpUBCo-bAQpxA_fI"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"code\":\"BAD_REQUEST\",\"message\":\"The request is invalid\"}",
            "description": "",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "string",
                "description": "HTTP status code",
                "example": "BAD_REQUEST"
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Custom Error Message",
                "example": "The request is invalid"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"code\":\"UNAUTHORIZED\",\"message\":\"Invalid authentication credentials\"}",
            "description": "",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "string",
                "description": "HTTP status code",
                "example": "UNAUTHORIZED"
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Custom error message",
                "example": "Invalid authentication credentials"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "403",
        "description": "Forbidden",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"code\":\"FORBIDDEN\",\"message\":\"You are not allowed to access this information\"}",
            "description": "",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "string",
                "description": "HTTP status code",
                "example": "FORBIDDEN"
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Custom error message",
                "example": "You are not allowed to access this information"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Resource not found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"code\":\"SITE_NOT_FOUND\",\"message\":\"SiteNotFoundError\"}",
            "description": "",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "string",
                "description": "HTTP status code",
                "example": "SITE_NOT_FOUND"
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Custom error message",
                "example": "SiteNotFoundError"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "424",
        "description": "Service dependency failed",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"code\":\"CONSUMER_ERROR\",\"message\":\"Unexpected error while communicating with downstream service, please try again\"}",
            "description": "",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "string",
                "description": "HTTP status code",
                "example": "CONSUMER_ERROR"
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Custom error message",
                "example": "Unexpected error while communicating with downstream service, please try again"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "429",
        "description": "Too many requests",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"code\":\"RATE_LIMITED\",\"message\":\"API rate limit exceeded\"}",
            "description": "",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "string",
                "description": "HTTP status code",
                "example": "RATE_LIMITED"
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Custom error message",
                "example": "API rate limit exceeded"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal server error",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"code\":\"INTERNAL_SERVER_ERROR\",\"message\":\"Something went wrong, please try again later\"}",
            "description": "",
            "schema": [
              {
                "name": "code",
                "kind": "optional",
                "type": "string",
                "description": "HTTP status code",
                "example": "INTERNAL_SERVER_ERROR"
              },
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "description": "Custom error message",
                "example": "Something went wrong, please try again later"
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "-dgW4hh4i2g_uaMgyhSj2",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'https://openapi.sine.co/v1/api/passes/?limit=100' \\\n     --header 'accept: application/json' \\\n     --header 'x-sine-team-id: string<uuid>'"
        },
        {
          "id": "3Cmlf1_7d1p6L29Ho4Lu1",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-sine-team-id\", \"string<uuid>\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://openapi.sine.co/v1/api/passes/?limit=100\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "2JR7o_TKtGj0zMNvwUTw6",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://openapi.sine.co/v1/api/passes/?limit=100\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-sine-team-id': 'string<uuid>'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "-dgW4hh4i2g_uaMgyhSj2"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// OK\n{\n  \"records\": [\n    {\n      \"firstName\": \"Example\",\n      \"lastName\": \"Person\",\n      \"email\": \"e.person@example.com\",\n      \"mobile\": \"+61 491 570 006\",\n      \"company\": \"ExampleCo\",\n      \"passType\": \"Visitor\",\n      \"entryType\": \"SineWeb\",\n      \"site\": \"ExampleCo HQ\",\n      \"duration\": 452,\n      \"issuedTime\": \"08:35:02\",\n      \"issuedDate\": \"21/12/2025\",\n      \"status\": \"checked out\",\n      \"pendingTime\": 60,\n      \"acceptedOrRejectedTime\": \"09:35:02\",\n      \"acceptedOrRejectedBy\": \"a.person@example.com\",\n      \"checkoutTime\": \"17:06:54\",\n      \"checkoutDate\": \"21/12/2025\",\n      \"hostFirstName\": \"Example\",\n      \"hostLastName\": \"Host\",\n      \"hostGroup\": \"Management\",\n      \"zone\": \"GN.1\",\n      \"notes\": \"Swipe card provided\",\n      \"checkInFormResponses\": [\n        {\n          \"label\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"signOutFormResponses\": [\n        {\n          \"label\": \"\",\n          \"value\": \"\"\n        }\n      ]\n    }\n  ],\n  \"next\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjIwMjEwOTEyNCJ9.eyJzY29wZSI6IjZOb0pidnFzQ0xvVnRTQjM5QVgweW04S1FhQT0iLCJ2YWx1ZSI6eyJtb2RlIjoia2V5c2V0IiwibmV4dCI6IkpUZENKVEl5YkdsdGFYUWxNaklsTTBFeEpUSkRKVEl5YTJWNVEyOXNkVzF1VG1GdFpYTWxNaklsTTBFbE5VSWxNakp6ZEdGeWRFUmhkR1VsTWpJbE1rTWxNakpwWkNVeU1pVTFSQ1V5UXlVeU1tdGxlVlpoYkhWbGN5VXlNaVV6UVNVMVFpVXlNakl3TWpVdE1UQXRNakpVTURNbE0wRXhNeVV6UVRVeUxqUTBPVm9sTWpJbE1rTWxNakl6T1RZeE9UZzVOQzFoWmpFM0xUUXdPR1l0WVdSaE1TMWxPRGs1WTJGaE5EWmxaVGNsTWpJbE5VUWxNa01sTWpKdmNHVnlZWFJ2Y2lVeU1pVXpRU1V5TW14MEpUSXlKVEpESlRJeWMyOXlkRVJwY21WamRHbHZiaVV5TWlVelFTVXlNa1JGVTBNbE1qSWxOMFE9In0sImlhdCI6MTc2MTEwMzIxMiwiZXhwIjoxNzYxMTg5NjEyfQ.Gatx-pBB9jsiDlkMnTVsPNGlLbTmpUBCo-bAQpxA_fI\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Bad request\n{\n  \"code\": \"BAD_REQUEST\",\n  \"message\": \"The request is invalid\"\n}"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"code\": \"UNAUTHORIZED\",\n  \"message\": \"Invalid authentication credentials\"\n}"
        },
        {
          "id": "response-3-403",
          "language": "403",
          "code": "// Forbidden\n{\n  \"code\": \"FORBIDDEN\",\n  \"message\": \"You are not allowed to access this information\"\n}"
        },
        {
          "id": "response-4-404",
          "language": "404",
          "code": "// Resource not found\n{\n  \"code\": \"SITE_NOT_FOUND\",\n  \"message\": \"SiteNotFoundError\"\n}"
        },
        {
          "id": "response-5-424",
          "language": "424",
          "code": "// Service dependency failed\n{\n  \"code\": \"CONSUMER_ERROR\",\n  \"message\": \"Unexpected error while communicating with downstream service, please try again\"\n}"
        },
        {
          "id": "response-6-429",
          "language": "429",
          "code": "// Too many requests\n{\n  \"code\": \"RATE_LIMITED\",\n  \"message\": \"API rate limit exceeded\"\n}"
        },
        {
          "id": "response-7-500",
          "language": "500",
          "code": "// Internal server error\n{\n  \"code\": \"INTERNAL_SERVER_ERROR\",\n  \"message\": \"Something went wrong, please try again later\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}