# RevenueBee - [Introduction](https://docs.revenuebee.ai/index.md): Connect your product to the CRM. - [Quickstart](https://docs.revenuebee.ai/quickstart.md): From install to your first contact in a few minutes. - [Setting up your data](https://docs.revenuebee.ai/concepts/setting-up-your-data.md): Send customers from your database, from Stripe, Paddle or Shopify, or both. - [Chat widget](https://docs.revenuebee.ai/concepts/chat-widget.md): Add an AI agent to your site that chats with your visitors. - [Voice calls](https://docs.revenuebee.ai/concepts/voice-calls.md): Let people talk to an AI voice agent from your site or by phone. - [Client](https://docs.revenuebee.ai/sdk/client.md): Create one client and reuse it. - [Errors](https://docs.revenuebee.ai/sdk/errors.md): What error.code means and what to do about it. - [contacts.upsert](https://docs.revenuebee.ai/sdk/upsert-contact.md): Create a customer the first time, update them every time after. - [contacts.resolve](https://docs.revenuebee.ai/sdk/resolve-contact.md): Find a customer's partyId from one of your own handles on them. - [contacts.get](https://docs.revenuebee.ai/sdk/get-contact.md): Read a customer back. - [contacts.list](https://docs.revenuebee.ai/sdk/contacts-list.md): Every customer, a page at a time. - [contacts.setConsent](https://docs.revenuebee.ai/sdk/contacts-consent.md): Record that a customer opted out of messages, or back in. - [contacts.erase](https://docs.revenuebee.ai/sdk/contacts-erase.md): Delete a customer and everything about them, for good. - [events.add](https://docs.revenuebee.ai/sdk/add-event.md): Record something a customer did. - [externalAccounts.add](https://docs.revenuebee.ai/sdk/add-external-account.md): Link a customer to their account in another system. - [externalAccounts.remove](https://docs.revenuebee.ai/sdk/remove-external-account.md): Unlink an account from a customer. - [externalAccounts.list](https://docs.revenuebee.ai/sdk/list-external-accounts.md): Every account a customer is linked to. - [subscriptions](https://docs.revenuebee.ai/sdk/subscriptions.md): What a customer pays, from a billing system that is not connected. - [payments](https://docs.revenuebee.ai/sdk/payments.md): One charge, from a billing system that is not connected. - [notes.add](https://docs.revenuebee.ai/sdk/notes.md): An internal note on a customer. - [communications.log](https://docs.revenuebee.ai/sdk/communications.md): An email, call, message or meeting from another tool. - [tasks](https://docs.revenuebee.ai/sdk/tasks.md): Work on a customer, for your team or the assistant. - [goals](https://docs.revenuebee.ai/sdk/goals.md): Something to achieve with a customer. - [chat.mintClaim](https://docs.revenuebee.ai/sdk/mint-chat-claim.md): Say who a signed-in visitor of the chat widget is. - [calls.generateCredentials](https://docs.revenuebee.ai/sdk/generate-call-credentials.md): Start a call between a visitor and a voice agent. - [Overview](https://docs.revenuebee.ai/api-reference/introduction.md): The REST API the SDK calls, for any language. - [Upsert a contact](https://docs.revenuebee.ai/api-reference/contacts/upsert-a-contact.md): Creates the contact the first time a dbId is seen and updates it every time after. Emails and phones are only ever added. The id it returns is the partyId every other route takes. - [Resolve a contact's partyId](https://docs.revenuebee.ai/api-reference/contacts/resolve-a-contacts-partyid.md): Turns one of your handles on a contact into the partyId every other route takes. An email resolves only when exactly one contact holds it. - [Get a contact](https://docs.revenuebee.ai/api-reference/contacts/get-a-contact.md): By partyId, or by your dbId. - [List contacts](https://docs.revenuebee.ai/api-reference/contacts/list-contacts.md): A page at a time. Send the nextCursor back as cursor for the next one. Archived contacts are left out. - [Erase a contact](https://docs.revenuebee.ai/api-reference/contacts/erase-a-contact.md): Deletes the contact and everything about it for good: details, interactions, notes, tasks, goals, revenue and timeline. It cannot be undone. - [Set a contact's consent](https://docs.revenuebee.ai/api-reference/contacts/set-a-contacts-consent.md): Records that the contact opted out of messages, or back in, as they chose in your product. - [Add an event](https://docs.revenuebee.ai/api-reference/events/add-an-event.md): Records something the contact did. The same idempotencyKey twice records it once. - [Link an external account](https://docs.revenuebee.ai/api-reference/external-accounts/link-an-external-account.md): Links the contact to its account in another system. A contact already created from that account, by a Stripe sync for instance, is merged into this one and removed. - [Unlink an external account](https://docs.revenuebee.ai/api-reference/external-accounts/unlink-an-external-account.md): The account stops pointing at this contact. A merge is not undone. - [List external accounts](https://docs.revenuebee.ai/api-reference/external-accounts/list-external-accounts.md) - [Upsert a subscription](https://docs.revenuebee.ai/api-reference/revenue/upsert-a-subscription.md): What the contact pays from a billing system that is not connected, such as your own. Amounts are minor units a month. It moves the contact's lifecycle the same way a connected Stripe or Paddle subscription does. - [Delete a subscription](https://docs.revenuebee.ai/api-reference/revenue/delete-a-subscription.md): One sent through the API or typed into the CRM. One from a connected provider stays with the provider. - [Upsert a payment](https://docs.revenuebee.ai/api-reference/revenue/upsert-a-payment.md): One charge from a billing system that is not connected, in minor units. Send it again with a refund to update it. - [Delete a payment](https://docs.revenuebee.ai/api-reference/revenue/delete-a-payment.md): One sent through the API or typed into the CRM. One from a connected provider stays with the provider. - [Add a note](https://docs.revenuebee.ai/api-reference/notes/add-a-note.md): An internal note on the contact, such as a summary from your own tools. It is never sent to the contact. - [Log a communication](https://docs.revenuebee.ai/api-reference/communications/log-a-communication.md): An email, call, message or meeting that happened in another tool, such as a support ticket. Send externalId and a retry returns the same one instead of logging it twice. - [Create a task](https://docs.revenuebee.ai/api-reference/tasks/create-a-task.md): Work for your team or the assistant on this contact. It goes to the contact's owner. - [List a contact's open tasks](https://docs.revenuebee.ai/api-reference/tasks/list-a-contacts-open-tasks.md) - [Complete a task](https://docs.revenuebee.ai/api-reference/tasks/complete-a-task.md) - [Create a goal](https://docs.revenuebee.ai/api-reference/goals/create-a-goal.md): Something to achieve with this contact, such as an upgrade or a renewal. - [List a contact's goals](https://docs.revenuebee.ai/api-reference/goals/list-a-contacts-goals.md) - [Complete a goal](https://docs.revenuebee.ai/api-reference/goals/complete-a-goal.md): Marks the goal achieved. - [Vouch for a chat widget visitor](https://docs.revenuebee.ai/api-reference/chat/vouch-for-a-chat-widget-visitor.md): Your backend calls this for a signed-in user and passes the claim to the widget as secureClaim. The chat is then filed under that contact, and the agent acts for them. Claims last six hours unless ttlSeconds says otherwise; mint one per page load. - [Start a call with a voice agent](https://docs.revenuebee.ai/api-reference/calls/start-a-call-with-a-voice-agent.md): Your backend calls this when a visitor is about to talk to a voice agent, and hands the result to gdcall.connect on the page. Each one is good for a single call. Pass partyId for a signed-in user and the call is filed under that contact; leave it out for an anonymous visitor. The agent must be on. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.