Download one session file (BMA extension)
curl --request GET \
--url https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/files/{file_id}/content \
--header 'x-api-key: <api-key>'import requests
url = "https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/files/{file_id}/content"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/files/{file_id}/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/files/{file_id}/content"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}"<string>"{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}API Reference
Download one session file (BMA extension)
Streams one file’s bytes. file_id is the id returned by the upload
or list operations. The response carries Content-Type,
Content-Length and Content-Disposition when known, and
X-BMA-File-Digest with the sha256 of the bytes. A file of another
session, or an unknown id, is a 404 not_found_error.
GET
/
v1
/
sessions
/
{session_id}
/
files
/
{file_id}
/
content
Download one session file (BMA extension)
curl --request GET \
--url https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/files/{file_id}/content \
--header 'x-api-key: <api-key>'import requests
url = "https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/files/{file_id}/content"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/files/{file_id}/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.staging.bma.beeos.ai/v1/sessions/{session_id}/files/{file_id}/content"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}"<string>"{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>",
"code": "<string>"
}
}Authorizations
apiKeybearer
BMA organization API key.
Headers
Project to operate in. Required when the key can read more than one
project and the deployment has no default project.
anthropic-workspace-id is accepted as an alias.
Path Parameters
Minimum string length:
1Minimum string length:
1Response
The file bytes.
The response is of type file.