communications-mining
latest
false
- API docs
- CLI
- Integration guides
- Blog
- How machines learn to understand words: a guide to embeddings in NLP
- Prompt-based learning with Transformers
- Efficient Transformers II: knowledge distillation & fine-tuning
- Efficient Transformers I: attention mechanisms
- Deep hierarchical unsupervised intent modelling: getting value without training data
- Fixing annotating bias with Communications Mining
- Active learning: better ML models in less time
- It's all in the numbers - assessing model performance with metrics
- Why model validation is important
- Comparing Communications Mining and Google AutoML for conversational data intelligence
Communications Mining Developer Guide
Last updated Nov 19, 2024
Attachments
# Attachments
## Get attachment content by reference
GET `/api/v1/attachments/<attachment_reference>`
Permissions required: **View sources**
- Bash
```bash
curl "https://<my_api_endpoint>/api/v1/attachments/CjQSEIExTHEqtdntoxz2WtbZDNEiIIVqcP1Sfx2L4epyRQDasa1RSODvheQ3bvLhj3L-_81G" \
-H "Authorization: Bearer $COMMUNICATIONS_MINING_TOKEN"
```
- Python
```python
import os
import requests
response = requests.get(
"https://<my_api_endpoint>/api/v1/attachments/CjQSEIExTHEqtdntoxz2WtbZDNEiIIVqcP1Sfx2L4epyRQDasa1RSODvheQ3bvLhj3L-_81G",
headers={
"Authorization": "Bearer " + os.environ["COMMUNICATIONS_MINING_TOKEN"]
},
)
print(response.content)
```
- Response
```bash
<binary data>
```
# Attachments
## Get attachment content by reference
GET `/api/v1/attachments/<attachment_reference>`
Permissions required: **View sources**
- Bash
```bash
curl "https://<my_api_endpoint>/api/v1/attachments/CjQSEIExTHEqtdntoxz2WtbZDNEiIIVqcP1Sfx2L4epyRQDasa1RSODvheQ3bvLhj3L-_81G" \
-H "Authorization: Bearer $COMMUNICATIONS_MINING_TOKEN"
```
- Python
```python
import os
import requests
response = requests.get(
"https://<my_api_endpoint>/api/v1/attachments/CjQSEIExTHEqtdntoxz2WtbZDNEiIIVqcP1Sfx2L4epyRQDasa1RSODvheQ3bvLhj3L-_81G",
headers={
"Authorization": "Bearer " + os.environ["COMMUNICATIONS_MINING_TOKEN"]
},
)
print(response.content)
```
- Response
```bash
<binary data>
```