slack
GET
https://hermeticor.com /v1/slack/installs Slack workspaces the app is installed in
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/slack/installs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"teamId": "string",
"teamName": "string",
"botUserId": "string",
"scopes": [
"string"
],
"status": "active",
"createdAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem249[]requiredShow child parameters
idstringrequiredteamIdstringrequiredteamNamestringrequiredbotUserIdstringrequiredscopesstring[]requiredstatusstringrequiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/slack/installs Install with your own Slack app's bot token (stored encrypted)
Request body
application/json
botTokenstringrequired{
"botToken": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/slack/installs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"botToken":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"teamId": "string",
"teamName": "string",
"botUserId": "string",
"scopes": [
"string"
],
"status": "active",
"createdAt": "string"
}Schema
idstringrequiredteamIdstringrequiredteamNamestringrequiredbotUserIdstringrequiredscopesstring[]requiredstatusstringrequiredcreatedAtstringrequiredDELETE
https://hermeticor.com /v1/slack/installs/{id} Remove a Slack workspace and delete its token
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/slack/installs/{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/slack/oauth/start Start "Add to Slack"; returns Slack's authorize URL
Code samples
cURL
curl -X POST "https://hermeticor.com/v1/slack/oauth/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 /integrations/slack/callback Parameters
typequeryadditionalPropertiesstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/integrations/slack/callback"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /v1/slack/templates Slack message templates
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/slack/templates" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"text": "string",
"blocks": [
{}
],
"createdAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem250[]requiredShow child parameters
idstringrequirednamestringrequiredtextstringrequiredblocksobject[]requiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/slack/templates Create a Slack message template (text plus optional Block Kit blocks)
Request body
application/json
namestringrequiredtextstringrequiredblocksobject[]{
"name": "string",
"text": "string",
"blocks": [
{}
]
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/slack/templates" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","text":"string","blocks":[{}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"text": "string",
"blocks": [
{}
],
"createdAt": "string"
}Schema
idstringrequirednamestringrequiredtextstringrequiredblocksobject[]requiredcreatedAtstringrequiredPUT
https://hermeticor.com /v1/slack/templates/{id} Edit a Slack message template
Parameters
idstringpathrequiredRequest body
application/json
namestringrequiredtextstringrequiredblocksobject[]{
"name": "string",
"text": "string",
"blocks": [
{}
]
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/slack/templates/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","text":"string","blocks":[{}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/slack/templates/{id} Delete a Slack message template
Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/slack/templates/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/slack/test Post a test message to a channel. Needs an idempotency key
Request body
application/json
installIdstringrequiredchannelstringrequiredtemplateIdstringtextstringidempotencyKeystring{
"installId": "string",
"channel": "string",
"templateId": "string",
"text": "string",
"idempotencyKey": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/slack/test" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"installId":"string","channel":"string","templateId":"string","text":"string","idempotencyKey":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"status": "sent",
"reason": "string"
}Schema
statusstringrequiredreasonstringrequiredGET
https://hermeticor.com /v1/slack/sends Recent Slack sends with their outcome
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/slack/sends" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"installId": "string",
"profileId": "string",
"target": "string",
"status": "sent",
"reason": "string",
"createdAt": "string"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredinstallIdstringrequiredprofileIdstringrequiredtargetstringrequiredstatusstringrequiredreasonstringrequiredcreatedAtstringrequirednextCursorstringrequiredUpdated