/
Authentication

Authentication

To authenticate, send a POST request to the following endpoint:

POST https://realtyfeed-sso.auth.us-east-1.amazoncognito.com/oauth2/token

The request should include the following in the Request Body as x-www-form-urlencoded key/values:

Parameter

Description

Parameter

Description

client_id

The client ID provided by Realtyna

client_secret

The client secret provided by Realtyna

grant_type

The grant type, which should be "client_credentials"

And also include the following in the Request Headers:

Parameter

Description

Parameter

Description

Content-Type

application/x-www-form-urlencoded

Accept-Encoding

gzip, deflate, br

Accept

*/*

If the authentication request is successful, you will receive a JSON response with the following values:

{ "access_token": "<access_token>", "expires_in": 3600, "token_type": "Bearer" }
  • access_token: This is the authorization token that needs to be passed in the Authorization header of API requests.

  • expires_in: The duration of validity for the token in seconds (currently set to 3600).

  • token_type: The type of token being returned (currently set to "Bearer").

Need more help? See How to get Authentication code