Skip to main content
When a request fails, the Dub API returns an HTTP status code and a JSON body with a machine-readable error code, a human-readable message and a link to this page:

Error codes

  • Problem: The request is malformed. For example, the body is not valid JSON or a required header is missing.
  • Solution: Check that the request is properly formatted.
  • Problem: The request does not include valid authentication credentials.
  • Solution: Make sure you are using a valid API key or access token. See Authentication.
  • Problem: The credentials are valid, but they don’t have permission to perform this action.
  • Solution: Check the API key’s scopes and your role in the workspace.
  • Problem: The request exceeds a limit of your workspace’s plan.
  • Solution: Upgrade your plan or wait for the usage limit to reset.
  • Problem: The requested resource does not exist, or it doesn’t belong to your workspace.
  • Solution: Check the ID in the request and make sure the resource exists.
  • Problem: Another resource already uses the same unique value. For example, a link with the same domain and key already exists.
  • Solution: Use a unique value.
  • Problem: An invitation for this email address is already pending.
  • Solution: Resend or revoke the existing invitation.
  • Problem: The invitation has expired.
  • Solution: Send a new invitation.
  • Problem: The request failed validation. For example, a field has the wrong type or a value is out of range.
  • Solution: Read the error message, which names the invalid field, and fix that value.
  • Problem: You have sent too many requests in a given amount of time.
  • Solution: Wait for the number of seconds in the Retry-After header, then try again. See Rate limits.
  • Problem: Something went wrong on Dub’s side.
  • Solution: Try again later. If the problem persists, contact support.
  • Problem: A service Dub depends on is temporarily unavailable.
  • Solution: Try again later.