Messaging & chat
Slack mock API
Stateful Slack Web API replica: auth, conversations, chat messages, users, reactions and signed Events API callbacks.
At a glance
- Operations
- 174
- Stateful operations
- 22
- Stateful resources
- 5
- Webhook events
- 4
- Vendor API version
- Web API (slack-api-specs, 2021 snapshot)
- Verification
- Spec-verified
How it works
Use Slack without calling Salesforce, Inc. (Slack)
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer xoxb-000000000000-000000000000-MaxoPerfExampleToken State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Auth | 1 |
| Conversations | 12 |
| Chat | 3 |
| Users | 3 |
| Reactions | 3 |
Webhooks
Events your handlers can receive
- channel_created
- member_joined_channel
- message.channels
- reaction_added
Deliveries are signed with the slack scheme, so your verification code runs unchanged.
Coverage
174 operations
22 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 152 |
| Conversations | 12 |
| Chat | 3 |
| Reactions | 3 |
| Users | 3 |
| Auth | 1 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
Source and limits
License, source and limits
- Generated from the Salesforce, Inc. (Slack) API description, licensed under MIT.
- Salesforce, Inc. (Slack) API documentation
- Source specification
Each collection holds up to 1 MiB of objects per bot token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Slack errors are HTTP 200 with {ok:false,error}. Methods accept form-encoded or JSON bodies. Stateful: auth.test, conversations.* (create/list/info/join/invite/kick/archive/unarchive/rename/history/members/replies), chat.postMessage/update/delete, users.list/info/lookupByEmail, reactions.add/remove/get. Read methods are served on GET and writes on POST. Channel, user and message ids that are not shaped like Slack ids are answered by a schema-valid sample instead of an error. A conversations.invite adds up to 3 users per call, and conversations.list ignores the types filter. Every other Web API method is a schema-valid stateless sample. The vendor spec is an archived 2021 snapshot. Events API callbacks go to the Virtual Service webhook setting and are signed with X-Slack-Signature.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Salesforce, Inc. (Slack). Slack is a trademark of its owner.