Skip to main content
API reference

Issuer

Generated HTTP reference for the 1 operation the published OpenAPI document describes under issuer.

1 min read
View MarkdownEdit on GitHub

Issuer

This page is generated from the published OpenAPI document. It is complete with respect to that document and says nothing about surfaces the document does not describe yet. See what is generated here for what that means.

Base URL: https://api.codespar.dev

Every operation below requires a Bearer token. See Authentication.

GET /v1/issuer/cards/{id}

Read one issued card, or the mint flow behind it

Path parameters

NameTypeRequiredDescription
idstringyesicrd_ for a card, imf_ for a mint flow. The prefix selects the body.

Responses

StatusBodyDescription
200object | objectOK. The card, or the mint flow when the id was an imf_ one — see the description for which id yields which.
404objectNot Found. No card and no mint flow with this id in the caller's organization and project. Both branches answer with the same code and differ only in the message.

Example response

{
  "id": "obj_0000000000000000",
  "issuer": "pomelo",
  "card_id": "card_0000000000000000",
  "last4": "string",
  "network": "visa",
  "status": "active",
  "created_at": "2026-01-15T12:00:00.000Z"
}

Example request

curl -X GET https://api.codespar.dev/v1/issuer/cards/{id} \
  -H "Authorization: Bearer $CODESPAR_API_KEY"
Issuer | CodeSpar