# Dub integration

> Link attribution platform API: short links, domains, tags, folders, click/lead/sale analytics and conversion tracking, and partner program management.

- Authentication: apiKey

## Tools (56)

- **Approve a bounty submission**: Approve a bounty submission. Approve a bounty submission. Optionally specify a custom reward amount.
- **Approve a partner application**: Approve a partner application. Approve a pending partner application to your program. The partner will be enrolled in the specified group and notified of the approval.
- **Ban a partner**: Ban a partner. Ban a partner from your program. This will disable all links and mark all commissions as canceled.
- **Bulk create links**: Bulk create links. Bulk create up to 100 links for the authenticated workspace.
- **Bulk delete links**: Bulk delete links. Bulk delete up to 100 links for the authenticated workspace.
- **Bulk update commissions**: Bulk update commissions. Bulk update up to 100 commissions with the same status.
- **Bulk update links**: Bulk update links. Bulk update up to 100 links with the same data for the authenticated workspace.
- **Check the availability of one or more domains**: Check the availability of one or more domains. Check if a domain name is available for purchase. You can check multiple domains at once.
- **Create a discount code**: Create a discount code. Create a discount code for a partner. The partner's group must already have a discount assigned to it, and the discount code must be associated with a link that is not already linked with another discount code.
- **Create a domain**: Create a domain. Create a domain for the authenticated workspace.
- **Create a folder**: Create a folder. Create a folder for the authenticated workspace.
- **Create a link**: Create a link. Create a link for the authenticated workspace.
- **Create a link for a partner**: Create a link for a partner. Create a link for a partner that is enrolled in your program.
- **Create a referrals embed token**: Create a referrals 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 a
- **Create a tag**: Create a tag. Create a tag for the authenticated workspace.
- **Create commission**: Create commission. Create one or more commissions (custom, lead or sale) for a partner. Custom commissions accept a negative `amount` to create a clawback. Commission creation is processed asynchronously – use the GET /commissions endpoint or webhooks to be notified when the commission is created.
- **Create or update a partner**: Create or update a partner. Creates a partner and enrolls them in the program. If that email is already enrolled, the enrollment is returned unchanged, except a different `tenantId` replaces the current one when it is not already associated with another partner in the program.
- **Deactivate a partner**: Deactivate a partner. 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.
- **Delete a customer**: Delete a customer. Delete a customer from a workspace.
- **Delete a discount code**: Delete a discount code. Delete a discount code for a partner by its unique ID or alphanumeric code. This will also disable the code in your connected discount provider (Stripe, Shopify, or custom via `disccount.deleted` webhook).
- **Delete a domain**: Delete a domain. Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.
- **Delete a folder**: Delete a folder. Delete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.
- **Delete a link**: Delete a link. Delete a link for the authenticated workspace.
- **Delete a tag**: Delete a tag. Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.
- **List all commissions**: List all commissions. Retrieve a paginated list of commissions for your partner program.
- **List all customers**: List all customers. Retrieve a paginated list of customers for the authenticated workspace.
- **List all domains**: List all domains. Retrieve a paginated list of domains for the authenticated workspace.
- **List all events**: List all events. Retrieve a paginated list of events for the authenticated workspace.
- **List all folders**: List all folders. Retrieve a paginated list of folders for the authenticated workspace.
- **List all links**: List all links. Retrieve a paginated list of links for the authenticated workspace.
- **List all partners**: List all partners. List all partners for a partner program.
- **List all payouts**: List all payouts. Retrieve a paginated list of payouts for your partner program.
- **List all program applications**: List all program applications. Retrieve a paginated list of applications for your partner program. Filter by `status` to list pending, approved, or rejected applications.
- **List all tags**: List all tags. Retrieve a paginated list of tags for the authenticated workspace.
- **List bounty submissions**: List bounty submissions. List all submissions for a specific bounty in your partner program.
- **List discount codes**: List discount codes. Retrieve a paginated list of discount codes in a program or filtered by partner, discount, or code.
- **Register a domain**: Register a domain. Register a domain for the authenticated workspace. Only available for Enterprise Plans.
- **Reject a bounty submission**: Reject a bounty submission. Reject a bounty submission with a specified reason and optional note.
- **Reject a partner application**: Reject a partner application. Reject a pending partner application to your program. The partner will be notified via email that their application was not approved.
- **Retrieve a customer**: Retrieve a customer. Retrieve a customer by ID for the authenticated workspace. To retrieve a customer by external ID, prefix the ID with `ext_`.
- **Retrieve a link**: Retrieve a link. Retrieve the info for a link.
- **Retrieve analytics for a link, a domain, or the authenticated workspace**: Retrieve analytics for a link, a domain, or the authenticated workspace. The response shape depends on the `event` and `groupBy` query parameters.
- **Retrieve analytics for a partner**: Retrieve analytics for a partner. Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter.
- **Retrieve a partner's links**: Retrieve a partner's links.. Retrieve a partner's links by their partner ID or tenant ID.
- **Retrieve a QR code**: Retrieve a QR code. Retrieve a QR code for a link.
- **Retrieve links count**: Retrieve links count. Retrieve the number of links for the authenticated workspace.
- **Track a lead**: Track a lead. Track a lead for a short link.
- **Track a sale**: Track a sale. Track a sale for a short link.
- **Update a commission**: Update a commission. Update an existing commission amount. This is useful for handling refunds (partial or full) or fraudulent sales.
- **Update a customer**: Update a customer. Update a customer for the authenticated workspace.
- **Update a domain**: Update a domain. Update a domain for the authenticated workspace.
- **Update a folder**: Update a folder. Update a folder in the workspace.
- **Update a link**: Update a link. Update a link for the authenticated workspace. If there's no change, returns it as it is.
- **Update a tag**: Update a tag. Update a tag in the workspace.
- **Upsert a link**: Upsert a link. 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.
- **Upsert a link for a partner**: Upsert a link for a partner. 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.

Connect Dub in General Input: https://www.generalinput.com/apps/dub