Dub
Use Dub APIs to manage short links, domains, tags, folders, analytics, conversion tracking, partner programs, commissions, payouts, and webhooks.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| API Key | api_key | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "DUB_APPROVE_BOUNTY_SUBMISSION", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("DUB_APPROVE_BOUNTY_SUBMISSION", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute DUB_APPROVE_BOUNTY_SUBMISSION --data '{ }'Tool 目录
可用 Tools
54 个可调用操作
Approve a bounty submissionDUB_APPROVE_BOUNTY_SUBMISSIONApprove a bounty submission. Optionally specify a custom reward amount.需要连接
Approve a bounty submission. Optionally specify a custom reward amount.
认证
需要 Connected AccountTags
Approve a partner applicationDUB_APPROVE_PARTNER_APPLICATIONApprove a pending partner application to your program. The partner will be enrolled in the specified group and notified of the approval.需要连接
Approve a pending partner application to your program. The partner will be enrolled in the specified group and notified of the approval.
认证
需要 Connected AccountTags
Ban a partnerDUB_BAN_PARTNERBan a partner from your program. This will disable all links and mark all commissions as canceled.需要连接
Ban a partner from your program. This will disable all links and mark all commissions as canceled.
认证
需要 Connected AccountTags
Bulk create linksDUB_BULK_CREATE_LINKSBulk create up to 100 links for the authenticated workspace.需要连接
Bulk create up to 100 links for the authenticated workspace.
认证
需要 Connected AccountTags
Bulk delete linksDUB_BULK_DELETE_LINKSBulk delete up to 100 links for the authenticated workspace.需要连接
Bulk delete up to 100 links for the authenticated workspace.
认证
需要 Connected AccountTags
Bulk update commissionsDUB_BULK_UPDATE_COMMISSIONSBulk update up to 100 commissions with the same status.需要连接
Bulk update up to 100 commissions with the same status.
认证
需要 Connected AccountTags
Bulk update linksDUB_BULK_UPDATE_LINKSBulk update up to 100 links with the same data for the authenticated workspace.需要连接
Bulk update up to 100 links with the same data for the authenticated workspace.
认证
需要 Connected AccountTags
Check the availability of one or more domainsDUB_CHECK_DOMAIN_STATUSCheck if a domain name is available for purchase. You can check multiple domains at once.需要连接
Check if a domain name is available for purchase. You can check multiple domains at once.
认证
需要 Connected AccountTags
Create commissionDUB_CREATE_COMMISSIONCreate one or more commissions (custom, lead or sale) for a partner. Commission creation is processed asynchronously. Use the List Commissions endpoint or webhooks to be notified when the commission is created.需要连接
Create one or more commissions (custom, lead or sale) for a partner. Commission creation is processed asynchronously. Use the List Commissions endpoint or webhooks to be notified when the commission is created.
认证
需要 Connected AccountTags
Create a domainDUB_CREATE_DOMAINCreate a domain for the authenticated workspace.需要连接
Create a domain for the authenticated workspace.
认证
需要 Connected AccountTags
Create a folderDUB_CREATE_FOLDERCreate a folder for the authenticated workspace.需要连接
Create a folder for the authenticated workspace.
认证
需要 Connected AccountTags
Create a linkDUB_CREATE_LINKCreate a link for the authenticated workspace.需要连接
Create a link for the authenticated workspace.
认证
需要 Connected AccountTags
Create or update a partnerDUB_CREATE_PARTNERCreates or updates a partner record (upsert behavior). If a partner with the same email already exists, their program enrollment will be updated with the provided tenantId. If no existing partner is found, a new partner will be created using the supplied information.需要连接
Creates or updates a partner record (upsert behavior). If a partner with the same email already exists, their program enrollment will be updated with the provided tenantId. If no existing partner is found, a new partner will be created using the supplied information.
认证
需要 Connected AccountTags
Create a link for a partnerDUB_CREATE_PARTNER_LINKCreate a link for a partner that is enrolled in your program.需要连接
Create a link for a partner that is enrolled in your program.
认证
需要 Connected AccountTags
Create a referrals embed tokenDUB_CREATE_REFERRALS_EMBED_TOKENCreate a referrals embed token for the given partner/tenant. The endpoint first attempts to locate an existing enrollment using the provided tenantId. If no enrollment is found, it resolves the partner by email and creates a new enrollment as needed. This results in an upsert-style flow that guarantees a valid enrollment and returns a usable embed token.需要连接
Create a referrals embed token for the given partner/tenant. The endpoint first attempts to locate an existing enrollment using the provided tenantId. If no enrollment is found, it resolves the partner by email and creates a new enrollment as needed. This results in an upsert-style flow that guarantees a valid enrollment and returns a usable embed token.
认证
需要 Connected AccountTags
Create a tagDUB_CREATE_TAGCreate a tag for the authenticated workspace.需要连接
Create a tag for the authenticated workspace.
认证
需要 Connected AccountTags
Deactivate a partnerDUB_DEACTIVATE_PARTNERThis will deactivate the partner from your program and disable all their active links. Their commissions and payouts will remain intact. You can reactivate them later if needed.需要连接
This will deactivate the partner from your program and disable all their active links. Their commissions and payouts will remain intact. You can reactivate them later if needed.
认证
需要 Connected AccountTags
Delete a customerDUB_DELETE_CUSTOMERDelete a customer from a workspace.需要连接
Delete a customer from a workspace.
认证
需要 Connected AccountTags
Delete a domainDUB_DELETE_DOMAINDelete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.需要连接
Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.
认证
需要 Connected AccountTags
Delete a folderDUB_DELETE_FOLDERDelete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.需要连接
Delete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.
认证
需要 Connected AccountTags
Delete a linkDUB_DELETE_LINKDelete a link for the authenticated workspace.需要连接
Delete a link for the authenticated workspace.
认证
需要 Connected AccountTags
Delete a tagDUB_DELETE_TAGDelete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.需要连接
Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.
认证
需要 Connected AccountTags
Retrieve a customerDUB_GET_CUSTOMERRetrieve a customer by ID for the authenticated workspace. To retrieve a customer by external ID, prefix the ID with `ext_`.需要连接
Retrieve a customer by ID for the authenticated workspace. To retrieve a customer by external ID, prefix the ID with `ext_`.
认证
需要 Connected AccountTags
List all customersDUB_GET_CUSTOMERSRetrieve a paginated list of customers for the authenticated workspace.需要连接
Retrieve a paginated list of customers for the authenticated workspace.
认证
需要 Connected AccountTags
Retrieve a linkDUB_GET_LINK_INFORetrieve the info for a link.需要连接
Retrieve the info for a link.
认证
需要 Connected AccountTags
List all linksDUB_GET_LINKSRetrieve a paginated list of links for the authenticated workspace.需要连接
Retrieve a paginated list of links for the authenticated workspace.
认证
需要 Connected AccountTags
Retrieve links countDUB_GET_LINKS_COUNTRetrieve the number of links for the authenticated workspace.需要连接
Retrieve the number of links for the authenticated workspace.
认证
需要 Connected AccountTags
Retrieve a QR codeDUB_GET_QRCODERetrieve a QR code for a link.需要连接
Retrieve a QR code for a link.
认证
需要 Connected AccountTags
List all tagsDUB_GET_TAGSRetrieve a paginated list of tags for the authenticated workspace.需要连接
Retrieve a paginated list of tags for the authenticated workspace.
认证
需要 Connected AccountTags
List bounty submissionsDUB_LIST_BOUNTY_SUBMISSIONSList all submissions for a specific bounty in your partner program.需要连接
List all submissions for a specific bounty in your partner program.
认证
需要 Connected AccountTags
List all commissionsDUB_LIST_COMMISSIONSRetrieve a paginated list of commissions for your partner program.需要连接
Retrieve a paginated list of commissions for your partner program.
认证
需要 Connected AccountTags
List all domainsDUB_LIST_DOMAINSRetrieve a paginated list of domains for the authenticated workspace.需要连接
Retrieve a paginated list of domains for the authenticated workspace.
认证
需要 Connected AccountTags
List all eventsDUB_LIST_EVENTSRetrieve a paginated list of events for the authenticated workspace.需要连接
Retrieve a paginated list of events for the authenticated workspace.
认证
需要 Connected AccountTags
List all foldersDUB_LIST_FOLDERSRetrieve a paginated list of folders for the authenticated workspace.需要连接
Retrieve a paginated list of folders for the authenticated workspace.
认证
需要 Connected AccountTags
List all pending partner applicationsDUB_LIST_PARTNER_APPLICATIONSRetrieve a paginated list of pending applications for your partner program.需要连接
Retrieve a paginated list of pending applications for your partner program.
认证
需要 Connected AccountTags
List all partnersDUB_LIST_PARTNERSList all partners for a partner program.需要连接
List all partners for a partner program.
认证
需要 Connected AccountTags
List all payoutsDUB_LIST_PAYOUTSRetrieve a paginated list of payouts for your partner program.需要连接
Retrieve a paginated list of payouts for your partner program.
认证
需要 Connected AccountTags
Register a domainDUB_REGISTER_DOMAINRegister a domain for the authenticated workspace. Only available for Enterprise Plans.需要连接
Register a domain for the authenticated workspace. Only available for Enterprise Plans.
认证
需要 Connected AccountTags
Reject a bounty submissionDUB_REJECT_BOUNTY_SUBMISSIONReject a bounty submission with a specified reason and optional note.需要连接
Reject a bounty submission with a specified reason and optional note.
认证
需要 Connected AccountTags
Reject a partner applicationDUB_REJECT_PARTNER_APPLICATIONReject a pending partner application to your program. The partner will be notified via email that their application was not approved.需要连接
Reject a pending partner application to your program. The partner will be notified via email that their application was not approved.
认证
需要 Connected AccountTags
Retrieve analytics for a link, a domain, or the authenticated workspace.DUB_RETRIEVE_ANALYTICSRetrieve analytics for a link, a domain, or the authenticated workspace. The response type depends on the `event` and `type` query parameters.需要连接
Retrieve analytics for a link, a domain, or the authenticated workspace. The response type depends on the `event` and `type` query parameters.
认证
需要 Connected AccountTags
Retrieve analytics for a partnerDUB_RETRIEVE_PARTNER_ANALYTICSRetrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter.需要连接
Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter.
认证
需要 Connected AccountTags
Retrieve a partner's links.DUB_RETRIEVE_PARTNER_LINKSRetrieve a partner's links by their partner ID or tenant ID.需要连接
Retrieve a partner's links by their partner ID or tenant ID.
认证
需要 Connected AccountTags
Track a leadDUB_TRACK_LEADTrack a lead for a short link.需要连接
Track a lead for a short link.
认证
需要 Connected AccountTags
Track a deep link open eventDUB_TRACK_OPENThis endpoint is used to track when a user opens your app via a Dub-powered deep link (for both iOS and Android).需要连接
This endpoint is used to track when a user opens your app via a Dub-powered deep link (for both iOS and Android).
认证
需要 Connected AccountTags
Track a saleDUB_TRACK_SALETrack a sale for a short link.需要连接
Track a sale for a short link.
认证
需要 Connected AccountTags
Update a commissionDUB_UPDATE_COMMISSIONUpdate an existing commission amount. This is useful for handling refunds (partial or full) or fraudulent sales.需要连接
Update an existing commission amount. This is useful for handling refunds (partial or full) or fraudulent sales.
认证
需要 Connected AccountTags
Update a customerDUB_UPDATE_CUSTOMERUpdate a customer for the authenticated workspace.需要连接
Update a customer for the authenticated workspace.
认证
需要 Connected AccountTags
Update a domainDUB_UPDATE_DOMAINUpdate a domain for the authenticated workspace.需要连接
Update a domain for the authenticated workspace.
认证
需要 Connected AccountTags
Update a folderDUB_UPDATE_FOLDERUpdate a folder in the workspace.需要连接
Update a folder in the workspace.
认证
需要 Connected AccountTags
Update a linkDUB_UPDATE_LINKUpdate a link for the authenticated workspace. If there's no change, returns it as it is.需要连接
Update a link for the authenticated workspace. If there's no change, returns it as it is.
认证
需要 Connected AccountTags
Update a tagDUB_UPDATE_TAGUpdate a tag in the workspace.需要连接
Update a tag in the workspace.
认证
需要 Connected AccountTags
Upsert a linkDUB_UPSERT_LINKUpsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.需要连接
Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
认证
需要 Connected AccountTags
Upsert a link for a partnerDUB_UPSERT_PARTNER_LINKUpsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.需要连接
Upsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
认证
需要 Connected AccountTags