platform
POST
https://hermeticor.com /oauth/token RFC 6749 token endpoint: authorization_code (with PKCE) and refresh_token grants
Request body
application/json
grant_typestringrequiredclient_idstringrequiredclient_secretstringcodestringredirect_uristringcode_verifierstringrefresh_tokenstring{
"grant_type": "authorization_code",
"client_id": "string",
"client_secret": "string",
"code": "string",
"redirect_uri": "string",
"code_verifier": "string",
"refresh_token": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/oauth/token" \
-H "Content-Type: application/json" \
-d '{"grant_type":"authorization_code","client_id":"string","client_secret":"string","code":"string","redirect_uri":"string","code_verifier":"string","refresh_token":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"access_token": "string",
"token_type": "Bearer",
"expires_in": 0,
"refresh_token": "string",
"scope": "string"
}Schema
access_tokenstringrequiredtoken_typestringrequiredexpires_inintegerrequiredrefresh_tokenstringrequiredscopestringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /oauth/revoke RFC 7009 token revocation
Request body
application/json
tokenstringrequiredclient_idstringrequiredclient_secretstring{
"token": "string",
"client_id": "string",
"client_secret": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/oauth/revoke" \
-H "Content-Type: application/json" \
-d '{"token":"string","client_id":"string","client_secret":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredGET
https://hermeticor.com /v1/authorized-apps Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/authorized-apps" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"clientId": "string",
"name": "string",
"scopes": [
"string"
],
"grantedBy": "string",
"grantedAt": "2024-01-01T00:00:00Z",
"lastUsedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem150[]requiredShow child parameters
clientIdstringrequirednamestringrequiredscopesstring[]requiredgrantedBystringrequiredgrantedAtstringrequiredlastUsedAtstringrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/authorized-apps/{clientId} Parameters
clientIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/authorized-apps/{clientId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"clientId": "string",
"name": "string",
"scopes": [
"string"
],
"grantedBy": "string",
"grantedAt": "2024-01-01T00:00:00Z",
"lastUsedAt": "2024-01-01T00:00:00Z"
}Schema
clientIdstringrequirednamestringrequiredscopesstring[]requiredgrantedBystringrequiredgrantedAtstringrequiredlastUsedAtstringrequiredDELETE
https://hermeticor.com /v1/authorized-apps/{clientId} Parameters
clientIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/authorized-apps/{clientId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated