CRM
Close mock API
Close CRM API v1: leads, contacts, opportunities, tasks, activities (notes, calls, emails) and webhook subscriptions.
At a glance
- Operations
- 308
- Stateful operations
- 20
- Stateful resources
- 6
- Webhook events
- 9
- Vendor API version
- 1.0.0
- Verification
- Spec-verified
How it works
Use Close without calling Elastic Inc. (Close)
- 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: Basic YXBpXzBhMUIyYzNENGU1RjZnN0g4aTlKMGsxTDJtM040by5QNHE1UjZzNy06 State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Leads | 4 |
| Contacts | 2 |
| Opportunities | 3 |
| Tasks | 2 |
| Activities (notes, calls, emails) | 7 |
| Webhook subscriptions | 2 |
Webhooks
Events your handlers can receive
- lead.deleted
- lead.updated
- lead.created
- contact.created
- opportunity.status_changed
- opportunity.updated
- opportunity.created
- task.completed
- activity.note.created
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
308 operations
20 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 288 |
| Activities (notes, calls, emails) | 7 |
| Leads | 4 |
| Opportunities | 3 |
| Contacts | 2 |
| Tasks | 2 |
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 Elastic Inc. (Close) API description, licensed under Proprietary (no licence declared in the vendor OpenAPI; no redistribution licence confirmed).
- Elastic Inc. (Close) API documentation
- Source specification
Each collection (leads, contacts, opportunities, tasks, notes, calls, emails, webhook subscriptions) holds up to 1 MiB of objects per API key; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Lead search `query` is a case-insensitive substring over the lead name only; the Close query language, _fields projection, total counts, custom fields and sorting are not implemented, and deleting a lead leaves its contacts, opportunities, tasks and activities in place. A lead create accepts at most 2 inline contacts; merging moves the source lead's contacts, opportunities and tasks to the destination (one merge per destination). DELETE answers 200 with {} as the pinned spec declares. Ids are validated by prefix: a well-formed but unknown id (lead_, cont_, oppo_, task_, acti_, whsub_ or stat_ followed by letters and digits) answers 404 or a field error, while any other id falls through to a generated response that stores nothing. Opportunity expected values are not computed, previous_data in webhook payloads is empty, and statuses, custom fields, users, sequences, SmartViews and reports are read-only or stateless. Webhook subscriptions are signed with HMAC-SHA256 hex over close-sig-timestamp + body using the hex-decoded signature_key (headers close-sig-hash and close-sig-timestamp); the key is returned only when the subscription is created.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Elastic Inc. (Close). Close is a trademark of its owner.