Search⌘ K
AI Features

List Cards

Explore how to retrieve all payment cards linked to a specific user by making GET requests to Marqeta API endpoints. Learn to filter response fields, use pagination for managing large results, and apply object expansion to optimize data retrieval. Understand the process to get detailed information about individual cards and handle response outcomes effectively.

In this lesson, we’ll learn to get a list of all Marqeta cards owned by a specific user. We’ll also learn to get information about a specific card.

Get all cards owned by a specific user

We can get a list of all Marqeta cards associated with a particular user by making a GET request to the {BASE_URL}/cards/user/{token} endpoint. The path parameter ({token}) refers to the token of the user that we want to retrieve information from. This gives us a list of all the cards associated with that specific user.

This endpoint allows us to filter the ...