CreateorRefreshaToken

POST

Create a Token from an Authorization Code

This is used after obtaining an authorization code from the /authorize resource.

Pay attention to the Authorization HTTP Header: Base 64 encoded concatenation of client_id and client_secret with a colon.

Example:
client_id = 9UY8NrmDtIh8GVTkNdX0Y7I6k37254a9
client_secret = Z1947381rwgf0WkPPGPHnGik6h3LdhZ9
Concatenated value: 9UY8NrmDtIh8GVTkNdX0Y7I6k37254a9:Z1947381rwgf0WkPPGPHnGik6h3LdhZ9
Base64 Encoded Value: OVVZOE5ybUR0SWg4R1ZUa05kWDBZN0k2azM3MjU0YTk6WjE5NDczODFyd2dmMFdrUFBHUEhuR2lrNmgzTGRoWjk=

Header:
Authorization: Basic OVVZOE5ybUR0SWg4R1ZUa05kWDBZN0k2azM3MjU0YTk6WjE5NDczODFyd2dmMFdrUFBHUEhuR2lrNmgzTGRoWjk=

Resource URL

https://api.honeywell.com/oauth2 /token

Header Parameters


Name Values Description
Authorization
(required)

Basic authorization header to verify application with authorization code. Base 64 encoded concatenation of client_id and client_secret with a colon. Example: client_id = 123 client_secret = abc Concatenated value: 123:abc Base64 Encoded Value: YWJjOjEyMw== Header: Authorization: Basic YWJjOjEyMw==

Accept
(required)

Define content type to be returned.

Body Parameters


Name Values Description
grant_type
(required)

Grant type to use "authorization_code"

code
(required)

Used with Authorization Code flow, code obtained during redirect from /authorize resource

redirect_uri
(required)

Redirect URI as defined in application setup, to be used with authorization_code flow

Request Body

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Resource Summary

Security

Content Type

application/x-www-form-urlencoded

Category

Authorization

Working...