social
GET
https://hermeticor.com /v1/social/apps Which networks (and Slack) can be connected by sign-in on this install
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/social/apps" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"provider": "linkedin",
"configured": true
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
providerstringrequiredconfiguredbooleanrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/social/accounts Connected social accounts
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/social/accounts" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"platform": "linkedin",
"externalId": "string",
"name": "string",
"status": "connected",
"lastError": "string",
"tokenExpiresAt": "string",
"createdAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem246[]requiredShow child parameters
idstringrequiredplatformstringrequiredexternalIdstringrequirednamestringrequiredstatusstringrequiredlastErrorstringrequiredtokenExpiresAtstringrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/social/accounts Connect with a pasted access token (stored encrypted); connects every page/account it can post as unless externalId is given
Request body
application/json
platformstringrequiredaccessTokenstringrequiredrefreshTokenstringexternalIdstring{
"platform": "linkedin",
"accessToken": "string",
"refreshToken": "string",
"externalId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/social/accounts" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"linkedin","accessToken":"string","refreshToken":"string","externalId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"items": [
{
"id": "string",
"platform": "linkedin",
"externalId": "string",
"name": "string",
"status": "connected",
"lastError": "string",
"tokenExpiresAt": "string",
"createdAt": "string"
}
]
}Schema
itemsItemsItem246[]requiredShow child parameters
idstringrequiredplatformstringrequiredexternalIdstringrequirednamestringrequiredstatusstringrequiredlastErrorstringrequiredtokenExpiresAtstringrequiredcreatedAtstringrequiredDELETE
https://hermeticor.com /v1/social/accounts/{id} Disconnect an account and delete its token
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/social/accounts/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /v1/social/oauth/{platform}/start Start sign-in with the network; returns its authorize URL
Parameters
platformstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/social/oauth/{platform}/start" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string"
}Schema
urlstringrequiredGET
https://hermeticor.com /v1/social/oauth/pending/{id} Pages and accounts a finished sign-in can post as, to pick from (yours, for 15 minutes)
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/social/oauth/pending/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"platform": "linkedin",
"items": [
{
"externalId": "string",
"name": "string",
"connected": true
}
]
}Schema
platformstringrequireditemsobject[]requiredShow child parameters
externalIdstringrequirednamestringrequiredconnectedbooleanrequiredPOST
https://hermeticor.com /v1/social/oauth/pending/{id} Connect the picked pages and accounts from a sign-in; the others are forgotten
Parameters
idstringpathrequiredRequest body
application/json
externalIdsstring[]required{
"externalIds": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/social/oauth/pending/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"externalIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /integrations/social/{platform}/callback Parameters
typequeryadditionalPropertiesstringqueryplatformstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/integrations/social/{platform}/callback"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /v1/social/posts Posts scheduled or published in a date range (the calendar)
Parameters
fromstringqueryrequiredtostringqueryrequiredaccountIdstringquerylimitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/social/posts?from=<from>&to=<to>" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"accountId": "string",
"groupId": "string",
"text": "string",
"media": [
{
"url": "string",
"type": "image"
}
],
"link": "string",
"status": "draft",
"scheduledAt": "string",
"publishedAt": "string",
"externalId": "string",
"url": "string",
"error": "string",
"metrics": {},
"metricsAt": "string",
"createdAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem247[]requiredShow child parameters
idstringrequiredaccountIdstringrequiredgroupIdstringrequiredtextstringrequiredmediaobject[]requiredShow child parameters
urlstringrequiredtypestringrequiredlinkstringrequiredstatusstringrequiredscheduledAtstringrequiredpublishedAtstringrequiredexternalIdstringrequiredurlstringrequirederrorstringrequiredmetricsobjectrequiredmetricsAtstringrequiredcreatedAtstringrequirednextCursorstringrequiredUpdated