App
An App is your integration: a name, aclient_id and client_secret, a
redirect URI, and a callback URL and signing secret. An App that Octogle
registers can be installed into many companies. An App your own company’s
admins register can be installed only in that company. See
Build an App for your own company.
Installation
A company installs your App by approving it through the OAuth consent screen. That creates one installation per(App, company) pair, which owns:
- one bot user in that company
- one bot token, scoped to that company only
active, disconnected (your
App called POST /oauth/revoke), and uninstalled (the company or Octogle
removed it). Reconnecting reactivates the same installation, the same bot
user, and issues a new token.
Bot user
Your App’s bot is a real user in the company, with a display name (your App’s name) and avatar (your App’s icon). It can:- be a member of groups and channels, and post in the ones it’s a member of
- receive and send direct messages to people, subject to who a bot may DM
Tokens and scopes
Your bot token doesn’t expire and isn’t refreshed — see OAuth install. It’s scoped to exactly what the company admin approved:
Full list on the Scopes page.
IDs
Every id is an opaque, prefixed string. The prefix tells you what it is, but it isn’t a secret and every lookup is still scoped to your installation’s company:
Store ids as opaque strings. Don’t parse them.
The response envelope
Every success is resource-keyed:/oauth/token and
/oauth/revoke, which return { "error", "error_description", "request_id" }
as OAuth client libraries expect (see Errors):
code is stable and machine-readable — branch on it, not on message. New
codes can appear over time (the API is additive-only within /v1); treat an
unknown one as a generic failure rather than crashing. Full list on
Errors.
Groups and channels
Your bot posts into conversations. A group istype: "group" with a
grp_ id, and a named channel inside it is type: "channel" with a chn_
id. Whether it is private is the separate field is_private. To get one,
call GET /v1/conversations or GET /v1/conversations/{grp_id}. See
Find a group or channel.
Enums and booleans
A value you read from the API can gain new members when the spec marks it as an extensible enum, such as a conversation’stype or a history
message’s type. Treat a value you don’t know as “other”. A closed enum,
such as a request’s to.type, never changes. is_bot and is_member are
plain booleans.
Lists are cursor-paginated
GET /v1/users, GET /v1/conversations, and
GET /v1/conversations/{conversation_id}/messages take limit (default
200, max 1000) and cursor, and return next_cursor, which is null on
the last page. Details on Pagination.