Skip to main content
GET
/
bounties
/
{bountyId}
/
submissions
TypeScript
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.bounties.listSubmissions({
    bountyId: "<id>",
    pageSize: 50,
  });

  console.log(result);
}

run();
[
  {
    "id": "<string>",
    "bountyId": "<string>",
    "partnerId": "<string>",
    "description": "<string>",
    "urls": [
      "<string>"
    ],
    "files": [
      {
        "url": "<string>",
        "fileName": "<string>",
        "size": 123
      }
    ],
    "status": "draft",
    "performanceCount": 123,
    "createdAt": "<string>",
    "completedAt": "<string>",
    "reviewedAt": "<string>",
    "rejectionReason": "<string>",
    "rejectionNote": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

bountyId
string
required

Query Parameters

status
enum<string>

The status of the submissions to list.

Available options:
draft,
submitted,
approved,
rejected
groupId
string

The ID of the group to list submissions for.

partnerId
string

The ID of the partner to list submissions for.

sortBy
enum<string>
default:completedAt

The field to sort the submissions by.

Available options:
completedAt,
performanceCount
sortOrder
enum<string>
default:asc

The order to sort the submissions by.

Available options:
asc,
desc
page
number
default:1

The page number for pagination.

Required range: x > 0
Example:

1

pageSize
number
default:100

The number of items per page.

Required range: 0 < x <= 100
Example:

50

Response

The list of bounty submissions.

id
string
required
bountyId
string
required
partnerId
string
required
description
string | null
required
urls
string[] | null
required
files
object[] | null
required
status
enum<string>
required
Available options:
draft,
submitted,
approved,
rejected
performanceCount
number | null
required
createdAt
string
required
completedAt
string | null
required
reviewedAt
string | null
required
rejectionReason
string | null
required
rejectionNote
string | null
required