Cards API.

/api/v1/cards

Using this API endpoint you can retrieve cards from the global deck, methods are available to assist with pagination and sorting.

  • Method: POST
  • Body:
    • Take: Defaults to 20, the amount of cards to retrieve.
    • Skip: The amount of cards to skip.
    • OrderBy: Defaults to createdAt sorted by desc. The sorting method to be used in the call.
Example Body:
{
  "take": 5,
  "skip": 5,
  "orderBy": {
    "createdAt": "desc"
  }
}
Example Response:

    /api/v1/cards/[id]

    Using this API endpoint you can retrieve a card by it's ID.

    • Method: GET
    Example Response: