| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
int | ✔️ | The opaque ID of the Answer. | 3 |
doc_id |
Optional[str] | ➖ | Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. | ANSWERS_answer_3 |
question |
Optional[str] | ➖ | N/A | Why is the sky blue? |
question_variations |
List[str] | ➖ | Additional ways of phrasing this question. | |
body_text |
Optional[str] | ➖ | The plain text answer to the question. | From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light. |
board_id |
Optional[int] | ➖ | : warning: ** DEPRECATED **: Deprecated on 2026-02-05, removal scheduled for 2026-10-15: Answer Boards no longer supported. The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. |
|
audience_filters |
List[models.FacetFilter] | ➖ | Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. | |
added_roles |
List[models.UserRoleSpecification] | ➖ | A list of user roles for the answer added by the owner. | |
removed_roles |
List[models.UserRoleSpecification] | ➖ | A list of user roles for the answer removed by the owner. | |
roles |
List[models.UserRoleSpecification] | ➖ | A list of roles for this answer explicitly granted by an owner, editor, or admin. | |
source_document_spec |
Optional[models.DocumentSpecUnion] | ➖ | N/A | |
source_type |
Optional[models.AnswerSourceType] | ➖ | N/A | |
permissions |
Optional[models.ObjectPermissions] | ➖ | N/A | |
combined_answer_text |
Optional[models.StructuredText] | ➖ | N/A | |
likes |
Optional[models.AnswerLikes] | ➖ | N/A | |
author |
Optional[models.Person] | ➖ | N/A | { "name": "George Clooney", "obfuscatedId": "abc123" } |
create_time |
date | ➖ | The time the answer was created in ISO format (ISO 8601). | |
update_time |
date | ➖ | The time the answer was last updated in ISO format (ISO 8601). | |
updated_by |
Optional[models.Person] | ➖ | N/A | { "name": "George Clooney", "obfuscatedId": "abc123" } |
verification |
Optional[models.Verification] | ➖ | N/A | |
collections |
List[models.Collection] | ➖ | The collections to which the answer belongs. | |
document_category |
Optional[str] | ➖ | The document's document_category(.proto). | |
source_document |
Optional[models.Document] | ➖ | N/A |