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

# Get attached media asset

GET https://api.aventure.vc/v1/media

Returns current managed asset; empty slots 404; inactive media is not listed.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/media/get-media

## Authentication

- `X-Client-Secret` header (required) — Client secret for read-only service-to-service access (no writes)

## Request

### Query parameters

- `mediaType` (enum, required) — Media target type.
  - Allowed values: `ENTITY`, `PERSON`, `NEWS`, `BLOG`
- `id` (string, optional) — Target UUID for entity/person or integer id for news.
- `slug` (string, optional) — Target slug.
- `logoType` (enum, optional) — Entity logo variant.
  - Allowed values: `SQUARE`, `STANDARD`

## Response

### 200

OK

- `cdnUrl` (string, required) — Resolved API CDN URL
- `mediaType` (enum, required) — Target media domain
  - Allowed values: `ENTITY`, `PERSON`, `NEWS`, `BLOG`
- `path` (string, required) — Attached managed storage path; never an external image URL
- `firstUploadedAt` (datetime, optional, nullable) — Earliest recorded write timestamp for this media asset slot from res_provenance_event (when this entity/person/news first received any image in this slot).
- `provenance` (object, optional, nullable) — Latest write source for this media asset slot from res_provenance_event. `changedAt` is the last-modified timestamp of the current attached file.
  - `changedAt` (datetime, optional, nullable)
  - `dataSourceUpdatedAt` (datetime, optional, nullable)
  - `detail` (string, optional, nullable)
  - `kind` (string, optional, nullable)
  - `pendingApproval` (integer, optional, nullable)
  - `sourceId` (string, optional, nullable)
  - `status` (string, optional, nullable)
- `targetId` (string, optional, nullable) — Attached entity/person/news target id, when known

## Examples

**Response**

```json
{
  "cdnUrl": "string",
  "mediaType": "ENTITY",
  "path": "string",
  "firstUploadedAt": "2024-01-15T09:30:00Z",
  "provenance": {
    "changedAt": "2024-01-15T09:30:00Z",
    "dataSourceUpdatedAt": "2024-01-15T09:30:00Z",
    "detail": "string",
    "kind": "string",
    "pendingApproval": 1,
    "sourceId": "string",
    "status": "string"
  },
  "targetId": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.aventure.vc/v1/media"

querystring = {"mediaType":"ENTITY"}

headers = {"X-Client-Secret": "<apiKey>"}

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

print(response.json())
```

```javascript
const url = 'https://api.aventure.vc/v1/media?mediaType=ENTITY';
const options = {method: 'GET', headers: {'X-Client-Secret': '<apiKey>'}};

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.aventure.vc/v1/media?mediaType=ENTITY"

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

	req.Header.Add("X-Client-Secret", "<apiKey>")

	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.aventure.vc/v1/media?mediaType=ENTITY")

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

request = Net::HTTP::Get.new(url)
request["X-Client-Secret"] = '<apiKey>'

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.aventure.vc/v1/media?mediaType=ENTITY")
  .header("X-Client-Secret", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.aventure.vc/v1/media?mediaType=ENTITY', [
  'headers' => [
    'X-Client-Secret' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/media?mediaType=ENTITY");
var request = new RestRequest(Method.GET);
request.AddHeader("X-Client-Secret", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-Client-Secret": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.aventure.vc/v1/media?mediaType=ENTITY")! 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()
```