Tokens REST API
Tokens REST API documentation and interactive testing.
For the OpenAPI Specification document use this link: https://apis.objectsgrid.com/oauth2/token/contract
EU or US depending on where your Organization Account is located
OAuth2 required attribute, do not change the 'urn:ietf:params:oauth:grant-type:token-exchange' value
Your ID Token that you obtained from the external Identity Provider (Google, Facebook, Okta)
OAuth2 required attribute, do not change the 'urn:ietf:params:oauth:token-type:id_token' value
Your Organization Account ID. The attribute name 'client_id' is required for OAuth2 standard compliance, but for this use case it really is organization account id.
POST /oauth2/token/useraccount HTTP/1.1
Host: apis.objectsgrid.com
X-ObjectsGrid-AccessPoint: EU
Content-Type: application/json
Accept: */*
Content-Length: 171
{
"grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
"subject_token": "text",
"subject_token_type": "urn:ietf:params:oauth:token-type:id_token",
"client_id": "text"
}
{
"access_token": "text",
"token_type": "text",
"expires_in": 1,
"refresh_token": "text"
}
EU or US depending on where your Organization Account is located
OAuth2 required attribute, do not change the 'client_credentials' value
POST /oauth2/token/serviceaccount HTTP/1.1
Host: apis.objectsgrid.com
Authorization: Basic username:password
X-ObjectsGrid-AccessPoint: EU
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"grant_type": "client_credentials"
}
{
"access_token": "text",
"token_type": "text",
"expires_in": 1,
"refresh_token": "text"
}
EU or US depending on where your Organization Account is located
OAuth2 required attribute, do not change the 'client_credentials' value
POST /oauth2/token/anonymous HTTP/1.1
Host: apis.objectsgrid.com
Authorization: Basic username:password
X-ObjectsGrid-AccessPoint: EU
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"grant_type": "client_credentials"
}
{
"access_token": "text",
"token_type": "text",
"expires_in": 1,
"refresh_token": "text"
}
EU or US depending on where your Organization Account is located
The refresh token you previously obtained in a Create Access Token request
OAuth2 required attribute, do not change the 'refresh_token' value
POST /oauth2/token/refresh HTTP/1.1
Host: apis.objectsgrid.com
Authorization: Bearer Bearer JWT
X-ObjectsGrid-AccessPoint: EU
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"refresh_token": "text",
"grant_type": "refresh_token"
}
{
"access_token": "text",
"token_type": "text",
"expires_in": 1,
"refresh_token": "text"
}
EU or US depending on where your Organization Account is located
The refresh token to revoke
OAuth2 required attribute, do not change the 'refresh_token' value
POST /oauth2/token/revoke HTTP/1.1
Host: apis.objectsgrid.com
Authorization: Bearer Bearer JWT
X-ObjectsGrid-AccessPoint: EU
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"token": "text",
"token_type_hint": "refresh_token"
}
No content
Last updated
Was this helpful?