---
updatedAt: 2025-06-12T20:22:38.000Z
agentTools:
  projectIndex: https://developer.toky.co/llms.txt
---

# /credit_cards

List all credit cards registered on the account. To register a new card go to https://app.toky.co/business/payments_panel/manage_cards

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "payments",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.toky.co/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/credit_cards": {
      "get": {
        "summary": "/credit_cards",
        "description": "List all credit cards registered on the account. To register a new card go to https://app.toky.co/business/payments_panel/manage_cards",
        "operationId": "credit_card",
        "parameters": [
          {
            "name": "X-Toky-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "{api_key}"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"success\": true,\n    \"result\": [\n        {\n            \"id\": \"250\",\n            \"name\": \"Toky Platinum\",\n            \"brand\": \"Visa\",\n            \"last4\": \"4242\",\n            \"exp_year\": \"2023\",\n            \"exp_month\": \"10\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "result": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "250"
                          },
                          "name": {
                            "type": "string",
                            "example": "Toky Platinum"
                          },
                          "brand": {
                            "type": "string",
                            "example": "Visa"
                          },
                          "last4": {
                            "type": "string",
                            "example": "4242"
                          },
                          "exp_year": {
                            "type": "string",
                            "example": "2023"
                          },
                          "exp_month": {
                            "type": "string",
                            "example": "10"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\"success\": true}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --location --request GET 'https://api.toky.co/v1/credit_cards' \\\n--header 'X-Toky-Key: {{X-Toky-Key}}'"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```