> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# List card programs

GET https://api.outpave.com/api/v1/card-programs

The card programs this company holds. A card is issued against one of these; omitting the id on card creation uses the one marked isDefault.


Reference: https://developers.outpave.com/api-reference/company-api/card-programs/list-card-programs

## Authentication

- `Authorization` header (bearer token, required) — A short-lived access token from `POST /api/v1/access-token` (30 minutes by default). Send as `Authorization: Bearer <jwt>`.

## Response

### 200

The company's card programs.

- `data` (list of CardProgram, optional)

## Errors

### 401 Unauthorized Error

The credential is missing, invalid, expired, or doesn't have permission for this endpoint.

- `error` (string, required) — A short, human-readable error message.
- `details` (list of string, optional) — Additional error details (returned on validation failures).

### 403 Forbidden Error

The credential is valid but doesn't have permission to access this resource, or your plan does not include API access or the feature.

- `error` (string, required) — A short, human-readable error message.
- `details` (list of string, optional) — Additional error details (returned on validation failures).

## Types

### CardProgram

An account a company issues cards against, funds and is billed on.

- `id` (string, optional)
- `issuer` (enum, optional)
  - Allowed values: `STRIPE`, `HIGHNOTE`
- `nickname` (string, optional)
- `subAccountType` (enum, optional) — Whether the program spends held cash or draws on a line of credit.
  - Allowed values: `DEBIT`, `CREDIT`, `SECURED_CREDIT`, `CHARGE`
- `status` (enum, optional)
  - Allowed values: `ACTIVE`, `PENDING`, `PENDING_REVIEW`, `DISCONNECTED`, `INACTIVE`
- `isDefault` (boolean, optional) — Used when a card request names no program.
- `last4` (string, optional, nullable)
- `createdAt` (double, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "9a1b2c3d-4e5f-6071-8293-a4b5c6d7e8f9",
      "issuer": "STRIPE",
      "nickname": "Operating account",
      "subAccountType": "DEBIT",
      "status": "ACTIVE",
      "isDefault": true,
      "last4": "string",
      "createdAt": 1.1
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.outpave.com/api/v1/card-programs"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.outpave.com/api/v1/card-programs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v1/card-programs"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v1/card-programs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.outpave.com/api/v1/card-programs")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.outpave.com/api/v1/card-programs', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v1/card-programs");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v1/card-programs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```