curl --request GET \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/emails/{email_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"email": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_email": "founder@startup.com",
"to_emails": [
"jsmith@example.com"
],
"subject": "Re: Investment Opportunity - TechStartup Inc",
"content": "<string>",
"content_preview": "<string>",
"company_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"tags": [
"follow-up",
"warm-intro"
],
"processed": false,
"metadata": {},
"attachments_count": 2,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "pitch_deck.pdf",
"content_type": "application/pdf",
"size": 123,
"storage_path": "<string>",
"download_url": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}
}
}Retrieve a specific email with full content and attachments.
curl --request GET \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/emails/{email_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"email": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_email": "founder@startup.com",
"to_emails": [
"jsmith@example.com"
],
"subject": "Re: Investment Opportunity - TechStartup Inc",
"content": "<string>",
"content_preview": "<string>",
"company_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"tags": [
"follow-up",
"warm-intro"
],
"processed": false,
"metadata": {},
"attachments_count": 2,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"attachments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "pitch_deck.pdf",
"content_type": "application/pdf",
"size": 123,
"storage_path": "<string>",
"download_url": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}
}
}