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

# List provider attachments

GET https://api.joincandidhealth.com/api/organization-providers/v3/{organization_provider_id}/attachments

Reference: https://docs.joincandidhealth.com/api-reference/organization-providers/v-3/list-attachments

## Authentication

- OAuth2 — send the obtained token as `Authorization: Bearer <token>`

## Servers

- `https://api.joincandidhealth.com` (Production, default)
- `https://api-staging.joincandidhealth.com` (Staging)
- `https://sandbox-api.joincandidhealth.com` (CandidSandbox)
- `https://staging-api.joincandidhealth.com` (CandidStaging)
- `http://localhost:5050` (Local)

## Request

### Path parameters

- `organization_provider_id` (UUID, required)

## Response

### 200

- `list of ProviderAttachment`

## Types

### ProviderAttachment

- `provider_attachment_id` (UUID, required)
- `organization_provider_id` (UUID, required)
- `file_name` (string, required)
- `file_type` (enum, required)
  - Allowed values: `W9`, `PECOS_RECORD`, `BANK_LETTER_OR_VOIDED_CHECK`
- `description` (string, required)
- `content_type` (string, required)
- `created_at` (datetime, required)
- `created_by` (UserV2, required)

### UserV2

- `user_id` (UUID, required)
- `idp_metadata` (list of IdpUserMetadata, required)
- `user_metadata` (UserMetadata, required)
- `primary_organization_id` (UUID, optional)

### IdpUserMetadata

- `type`: `auth_zero_metadata`
  - `auth0_id` (string, required)
- `type`: `google_apps_metadata`
  - `google_apps_id` (string, required)
- `type`: `other_idp_metadata`
  - `idp_external_id` (string, required)

### UserMetadata

- `type`: `machine_user_metadata`
  - `name` (string, required)
- `type`: `human_user_metadata`
  - `email` (string, required)
  - `first_name` (string, required)
  - `last_name` (string, required)

## Examples

**Response**

```json
[
  {
    "provider_attachment_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
    "organization_provider_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
    "file_name": "file_name",
    "file_type": "W9",
    "description": "description",
    "content_type": "content_type",
    "created_at": "2024-01-15T09:30:00Z",
    "created_by": {
      "user_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
      "idp_metadata": [
        {
          "type": "auth_zero_metadata",
          "auth0_id": "auth0_id"
        },
        {
          "type": "auth_zero_metadata",
          "auth0_id": "auth0_id"
        }
      ],
      "user_metadata": {
        "type": "machine_user_metadata",
        "name": "name"
      },
      "primary_organization_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
    }
  },
  {
    "provider_attachment_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
    "organization_provider_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
    "file_name": "file_name",
    "file_type": "W9",
    "description": "description",
    "content_type": "content_type",
    "created_at": "2024-01-15T09:30:00Z",
    "created_by": {
      "user_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
      "idp_metadata": [
        {
          "type": "auth_zero_metadata",
          "auth0_id": "auth0_id"
        },
        {
          "type": "auth_zero_metadata",
          "auth0_id": "auth0_id"
        }
      ],
      "user_metadata": {
        "type": "machine_user_metadata",
        "name": "name"
      },
      "primary_organization_id": "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
    }
  }
]
```

**SDK Code**

```python
import requests

url = "https://api.joincandidhealth.com/api/organization-providers/v3/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/attachments"

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

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

print(response.json())
```

```javascript
const url = 'https://api.joincandidhealth.com/api/organization-providers/v3/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/attachments';
const options = {method: 'GET', headers: {Authorization: '<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.joincandidhealth.com/api/organization-providers/v3/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/attachments"

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

	req.Header.Add("Authorization", "<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.joincandidhealth.com/api/organization-providers/v3/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/attachments")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<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.joincandidhealth.com/api/organization-providers/v3/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/attachments")
  .header("Authorization", "<token>.")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.joincandidhealth.com/api/organization-providers/v3/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/attachments', [
  'headers' => [
    'Authorization' => '<token>.',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.joincandidhealth.com/api/organization-providers/v3/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/attachments");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<token>.");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.joincandidhealth.com/api/organization-providers/v3/d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32/attachments")! 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()
```