> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.termina.ai/api-reference/deal-management/file/read-url/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.termina.ai/_mcp/server.
# File Read Url
GET https://app.termina.ai/api/v1/group/{group_id}/deal/{deal_id}/file/{file_id}/signed-url
Get a signed URL to read a file by its ID for a specific group and deal.
Args:
download: If True, the signed URL will force a download. If False, allows inline viewing.
redirect: If True, returns a 302 redirect to the signed URL instead of JSON.
Useful for embedding in \
tags without client-side JavaScript.
Reference: https://docs.termina.ai/api-reference/deal-management/file/read-url
## Authentication
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token.
## Servers
- `https://app.termina.ai` (Production server, default)
- `https://app.termina.dev` (Development server)
- `http://localhost:8000` (Local development server)
## Request
### Path parameters
- `group_id` (integer, required)
- `deal_id` (integer, required)
- `file_id` (integer, required)
### Query parameters
- `content_type` (string, optional, nullable)
- `download` (boolean, optional, default: true)
- `redirect` (boolean, optional, default: false)
## Response
### 200
Successful Response
- `method` (string, required)
- `url` (string, required)
- `fields` (map from string to any, optional, nullable)
- `headers` (map from string to any, optional, nullable)
## Errors
### 422 Unprocessable Entity Error
Validation Error
- `detail` (list of ValidationError, optional)
## Types
### ValidationError
- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)
### ValidationErrorLocItems
### ValidationErrorCtx
## Examples
**Response**
```json
{
"method": "string",
"url": "string",
"fields": {},
"headers": {}
}
```
**SDK Code**
```python
import requests
url = "https://app.termina.ai/api/v1/group/1/deal/1/file/1/signed-url"
headers = {"Authorization": "Bearer "}
response = requests.get(url, headers=headers)
print(response.json())
```
```javascript
const url = 'https://app.termina.ai/api/v1/group/1/deal/1/file/1/signed-url';
const options = {method: 'GET', headers: {Authorization: 'Bearer '}};
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://app.termina.ai/api/v1/group/1/deal/1/file/1/signed-url"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer ")
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://app.termina.ai/api/v1/group/1/deal/1/file/1/signed-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer '
response = http.request(request)
puts response.read_body
```
```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
HttpResponse response = Unirest.get("https://app.termina.ai/api/v1/group/1/deal/1/file/1/signed-url")
.header("Authorization", "Bearer ")
.asString();
```
```php
request('GET', 'https://app.termina.ai/api/v1/group/1/deal/1/file/1/signed-url', [
'headers' => [
'Authorization' => 'Bearer ',
],
]);
echo $response->getBody();
```
```csharp
using RestSharp;
var client = new RestClient("https://app.termina.ai/api/v1/group/1/deal/1/file/1/signed-url");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer ");
IRestResponse response = client.Execute(request);
```
```swift
import Foundation
let headers = ["Authorization": "Bearer "]
let request = NSMutableURLRequest(url: NSURL(string: "https://app.termina.ai/api/v1/group/1/deal/1/file/1/signed-url")! 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()
```