---
title: Authenticate
slug: api/authenticate
docTags: 
createdAt: 2026-03-01T03:12:36.506Z
---

{
  "id": "4QNyp44ETC6h6BXevmXYx",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://openapi.sine.co/v1/api/oauth2/token",
    "servers": [
      {
        "url": "https://openapi.sine.co/v1/api/oauth2/token",
        "description": "Sine Public API"
      },
      {
        "url": "https://api.forge.connected.honeywell.com/oauth2/token",
        "description": "Legacy API"
      }
    ],
    "name": "Authenticate",
    "description": "Generate Access Token",
    "contentType": "application/x-www-form-urlencoded",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "kind": "required",
          "name": "x-sine-team-id",
          "type": "string<uuid>",
          "description": "The UUID of the Team",
          "format": "uuid"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [
        {
          "name": "grant_type",
          "kind": "optional",
          "type": "string",
          "description": "OAuth2 grant type",
          "example": "client_credentials"
        },
        {
          "name": "client_id",
          "kind": "optional",
          "type": "string",
          "description": "client id",
          "example": "ffTUyNO8fkHR0a5on8QRBL3GVl33cs9U"
        },
        {
          "name": "client_secret",
          "kind": "optional",
          "type": "string",
          "description": "client secret",
          "example": "zbhLZofqv7OxhTrimY8ph8RDFDJyHxat"
        }
      ],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "OK",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "token_type",
                "kind": "optional",
                "type": "string",
                "description": "token type",
                "example": "Bearer"
              },
              {
                "name": "access_token",
                "kind": "optional",
                "type": "string",
                "description": "access token",
                "example": "SHJcJf76hWBjoW3FMywUZ2xKMQ7rYQ6e"
              },
              {
                "name": "expires_in",
                "kind": "optional",
                "type": "number",
                "description": "token time-to-live in seconds",
                "example": 120
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "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": "Invalid client authentication"
              }
            ],
            "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": "kpIqKInul9wYyzuWc8Jdt",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://openapi.sine.co/v1/api/oauth2/token \\\n     --header 'accept: application/json' \\\n     --header 'x-sine-team-id: string<uuid>'"
        },
        {
          "id": "JxV2T9N4q7PPMXuECrjoS",
          "language": "javascript",
          "label": "JavaScript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/x-www-form-urlencoded\");\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/oauth2/token\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "urwdn5jne2fLD5UZspg8G",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"https://openapi.sine.co/v1/api/oauth2/token\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/x-www-form-urlencoded',\n   'x-sine-team-id': 'string<uuid>'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "kpIqKInul9wYyzuWc8Jdt"
    },
    "results": {
      "languages": [
        {
          "id": "DOZeAVFl8ffImYrFeUK4R",
          "language": "200",
          "code": "// OK\n{\n  \"token_type\": \"Bearer\",\n  \"access_token\": \"SHJcJf76hWBjoW3FMywUZ2xKMQ7rYQ6e\",\n  \"expires_in\": 120\n}"
        },
        {
          "id": "eekGSSg4cdIxIFnqgKpov",
          "language": "400",
          "code": "// Bad request\n{\n  \"code\": \"BAD_REQUEST\",\n  \"message\": \"Invalid client authentication\"\n}"
        },
        {
          "id": "4mpuqbJxDjLcKaV5b5uS5",
          "language": "500",
          "code": "// Internal server error\n{\n  \"code\": \"INTERNAL_SERVER_ERROR\",\n  \"message\": \"Something went wrong, please try again later\"\n}"
        }
      ],
      "selectedLanguageId": "DOZeAVFl8ffImYrFeUK4R"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}