Skip to main content

Get mint requests

Get mint requests for an organization using the Phosphor API.

Get all mint requests

Issue a GET request to the mint-requests endpoint to retrieve all mint requests for the organization.

GET https://admin-api.phosphor.xyz/v1/mint-requests

This paginated endpoint returns results up to a certain limit.

  • Specify a cursor from a previous response to return the next batch of results from the offset.
  • Specify an order_directionin ASC or DESC to sort results in an ascending or descending order.
  • Additional query params can be specified to further filter the results, including collection_id and item_id.
GET https://admin-api.phosphor.xyz/v1/mint-requests?limit=1
Example response (abbreviated)
{
"cursor": "ZHRfMTY1NTkwNjI5NS44NTg0NTc.",
"has_more": false,
"results": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa5",
"quantity": 1,
"transaction_id": "3fa85f64-5717-4562-b3fc-2c963f66afa9"
}
],
"total_results": 1
}
  • cursor indicates an offset from which the next batch of results begins.
  • has_more returns true if there are more results than already displayed.
  • results returns an array of mint requests from the search.
  • total_results returns the total number of results from the response.

Get a specific mint request

Issue a GET request to the mint-requests endpoint with a transaction ID to get a specific mint request.

GET https://admin-api.phosphor.xyz/v1/mint-requests/{transaction_id}
Example response
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"item_id": "3fa85f64-5717-4562-b3fc-2c963f66afa8",
"quantity": 1,
"transaction_id": "3fa85f64-5717-4562-b3fc-2c963f66afa5"
}