Retrieves a single email by its ID. Email fields are redacted based on the caller-specific privacy resolution, and the response includes a read-only accessLevel.
Required scope: emails:read
Rate limit category: Read
Retrieve an email
package main
import (
"context"
"fmt"
"github.com/Lightfld/lightfield-go"
"github.com/Lightfld/lightfield-go/option"
)
func main() {
client := githubcomlightfldlightfieldgo.NewClient(
option.WithAPIKey("My API Key"),
)
emailRetrieveResponse, err := client.Email.Get(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", emailRetrieveResponse.ID)
}
{
"id": "eml_cm0abc456def789",
"accessLevel": "FULL",
"createdAt": "2026-05-01T09:00:00.000Z",
"fields": {
"$subject": {
"value": "Following up on our chat",
"valueType": "TEXT"
},
"$sentAt": {
"value": "2026-05-01T08:30:00.000Z",
"valueType": "DATETIME"
},
"$from": {
"value": [
"sales@acme.com"
],
"valueType": "EMAIL"
},
"$to": {
"value": [
"lead@example.com"
],
"valueType": "EMAIL"
},
"$cc": {
"value": [
"string"
],
"valueType": "EMAIL"
},
"$bcc": {
"value": [
"string"
],
"valueType": "EMAIL"
},
"$privacySetting": {
"value": "string",
"valueType": "TEXT"
},
"$body": {
"value": "<p>Hi there,</p><p>Following up on our chat earlier this week.</p>",
"valueType": "HTML"
}
},
"httpLink": null,
"objectType": "email",
"relationships": {
"$account": {
"cardinality": "has_many",
"objectType": "account",
"values": [
"acc_cm4stu901uvw234"
]
},
"$contact": {
"cardinality": "has_many",
"objectType": "contact",
"values": [
"con_cm2ghi789jkl012"
]
}
},
"updatedAt": "2026-05-01T10:00:00.000Z",
"externalId": "externalId"
}Returns Examples
{
"id": "eml_cm0abc456def789",
"accessLevel": "FULL",
"createdAt": "2026-05-01T09:00:00.000Z",
"fields": {
"$subject": {
"value": "Following up on our chat",
"valueType": "TEXT"
},
"$sentAt": {
"value": "2026-05-01T08:30:00.000Z",
"valueType": "DATETIME"
},
"$from": {
"value": [
"sales@acme.com"
],
"valueType": "EMAIL"
},
"$to": {
"value": [
"lead@example.com"
],
"valueType": "EMAIL"
},
"$cc": {
"value": [
"string"
],
"valueType": "EMAIL"
},
"$bcc": {
"value": [
"string"
],
"valueType": "EMAIL"
},
"$privacySetting": {
"value": "string",
"valueType": "TEXT"
},
"$body": {
"value": "<p>Hi there,</p><p>Following up on our chat earlier this week.</p>",
"valueType": "HTML"
}
},
"httpLink": null,
"objectType": "email",
"relationships": {
"$account": {
"cardinality": "has_many",
"objectType": "account",
"values": [
"acc_cm4stu901uvw234"
]
},
"$contact": {
"cardinality": "has_many",
"objectType": "contact",
"values": [
"con_cm2ghi789jkl012"
]
}
},
"updatedAt": "2026-05-01T10:00:00.000Z",
"externalId": "externalId"
}