Collections
Get All Collections

Knit API Documentation

Get All Collections

Endpoint

GET

{{baseUrl}}/api/collections
Headers
  • X-API-KEY: Your unique API key for authentication.
  • Accept: Set to application/json to ensure the response is in JSON format.
Sample Request
Sample Request
curl --location -g '{{baseUrl}}/api/collections' \
--header 'X-API-KEY: {{apiKey}}' \
--header 'Accept: application/json'
Sample Response
Sample Response
{
  "success": true,
  "message": "Collections fetched successfully",
  "status": 200,
  "data": [
    {
      "id": "9cddd3ad-c2a8-463c-a703-158b900beea8",
      "network": "MATIC_MAINNET",
      "token": "USDT",
      "address": "0x3761f3504104f4faa8959963a5d8dce89989d45b",
      "tokenAmount": "2500.000000000000000000",
      "tokenToUsd": "1.00000000",
      "tokenAmountRequested": "2500.000000000000000000",
      "tokenAmountReceived": null,
      "feeInUsd": "0.00000000",
      "feeByToken": "0.000000000000000000",
      "fiatExchangeRateToUsd": null,
      "fiatAmountInUsd": null,
      "fiatAmount": null,
      "fiatAmountCurrency": null,
      "status": "PENDING",
      "transactionHash": null,
      "transactionBlockNumber": null,
      "numberOfConfirmations": null,
      "confirmationThreshold": 10,
      "merchantRedirectUrl": null,
      "merchantCallbackUrl": "https://example.com",
      "paymentLinkUrl": "https://checkout-dev.collection.useknit.io/9cddd3ad-c2a8-463c-a703-158b900beea8",
      "expiresAt": "2024-08-27T14:02:10.000000Z",
      "createdAt": "2024-08-27T13:32:10.000000Z",
      "updatedAt": "2024-08-27T13:32:10.000000Z"
    }
  ]
}