# Retrieve an export

> Returns the status of an export and, once it is ready, a short-lived download URL.

Source: https://www.bloomtext.com/developers/api/reference/get-chat-export/

`GET /exports/{exportId}`

Returns the status of an export and, once it is ready, a short-lived download URL.

**Scope** `exports:read`

### Path parameters

- `exportId` (UUID, required): ID of the export.

### Returns

Returns `200 OK` with the [Export object](https://www.bloomtext.com/developers/api/reference/export-object/).

### Errors

Failed requests return `application/problem+json` [problem details](https://www.bloomtext.com/developers/api/errors/). The errors specific to this endpoint:

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | `invalid_request` | The request is malformed, such as invalid JSON. |
| 401 | `unauthorized` | The API key is missing, revoked, or invalid. |
| 403 | `insufficient_scope` | The key lacks the required scope. |
| 404 | `not_found` | The resource doesn’t exist or isn’t visible to this key. |
| 429 | `rate_limited` | Too many requests. Retry after `Retry-After` seconds. |

```bash filename="Request"
curl "https://api.bloomtext.com/v1/exports/7a2e4c6b-9d1f-4b3a-8e5c-2f0d1b3a5c7e" \
  -H "Authorization: Bearer $BLOOMTEXT_API_KEY"
```

```js filename="Request"
const response = await fetch('https://api.bloomtext.com/v1/exports/7a2e4c6b-9d1f-4b3a-8e5c-2f0d1b3a5c7e', {
  headers: {
    Authorization: `Bearer ${process.env.BLOOMTEXT_API_KEY}`,
  },
})

if (!response.ok) throw new Error(`BloomText API error: ${response.status}`)
const data = await response.json()
```

```python filename="Request"
import os

import requests

response = requests.get(
    "https://api.bloomtext.com/v1/exports/7a2e4c6b-9d1f-4b3a-8e5c-2f0d1b3a5c7e",
    headers={
        "Authorization": f"Bearer {os.environ['BLOOMTEXT_API_KEY']}",
    },
)
response.raise_for_status()
data = response.json()
```

```go filename="Request"
package main

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

func main() {
	req, err := http.NewRequest("GET", "https://api.bloomtext.com/v1/exports/7a2e4c6b-9d1f-4b3a-8e5c-2f0d1b3a5c7e", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("BLOOMTEXT_API_KEY"))

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(out))
}
```

```ruby filename="Request"
require "net/http"
require "json"

uri = URI("https://api.bloomtext.com/v1/exports/7a2e4c6b-9d1f-4b3a-8e5c-2f0d1b3a5c7e")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer #{ENV.fetch("BLOOMTEXT_API_KEY")}"

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
data = JSON.parse(response.body)
```

```json filename="Response · 200 OK"
{
  "id": "7a2e4c6b-9d1f-4b3a-8e5c-2f0d1b3a5c7e",
  "status": "ready",
  "created_at": "2026-09-21T15:04:05Z",
  "download_url": "https://files.bloomtext.com/exports/7a2e4c6b.zip?expires=1790003600&signature=…"
}
```
