Microsoft Outlook · Schema
Attachment
Base resource for file, item, and reference attachments. Use the @odata.type property to specify the derived type.
CalendarContactsEmailEnterpriseMicrosoftOffice 365Productivity
Properties
| Name | Type | Description |
|---|---|---|
| @odata.type | string | The OData type of the attachment. Use #microsoft.graph.fileAttachment for file attachments or #microsoft.graph.itemAttachment for item attachments. |
| id | string | The unique identifier of the attachment. Read-only. |
| name | string | The display name of the attachment. |
| contentType | string | The MIME type of the attachment. |
| size | integer | The length of the attachment in bytes. |
| isInline | boolean | True if the attachment is an inline attachment. |
| lastModifiedDateTime | string | The date and time the attachment was last modified in UTC. |
| contentBytes | string | The base64-encoded contents of the file. Only applicable for fileAttachment. |
| contentId | string | The ID of the attachment in the Exchange store. Only applicable for fileAttachment. |
| contentLocation | string | The Uniform Resource Identifier (URI) corresponding to the location of the content of the attachment. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Attachment",
"type": "object",
"description": "Base resource for file, item, and reference attachments. Use the @odata.type property to specify the derived type.",
"properties": {
"@odata.type": {
"type": "string",
"description": "The OData type of the attachment. Use #microsoft.graph.fileAttachment for file attachments or #microsoft.graph.itemAttachment for item attachments."
},
"id": {
"type": "string",
"description": "The unique identifier of the attachment. Read-only."
},
"name": {
"type": "string",
"description": "The display name of the attachment."
},
"contentType": {
"type": "string",
"description": "The MIME type of the attachment."
},
"size": {
"type": "integer",
"description": "The length of the attachment in bytes."
},
"isInline": {
"type": "boolean",
"description": "True if the attachment is an inline attachment."
},
"lastModifiedDateTime": {
"type": "string",
"description": "The date and time the attachment was last modified in UTC."
},
"contentBytes": {
"type": "string",
"description": "The base64-encoded contents of the file. Only applicable for fileAttachment."
},
"contentId": {
"type": "string",
"description": "The ID of the attachment in the Exchange store. Only applicable for fileAttachment."
},
"contentLocation": {
"type": "string",
"description": "The Uniform Resource Identifier (URI) corresponding to the location of the content of the attachment."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-graph-mail-attachment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.