> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Charter works for any HTTP API, including the user's own. The packs are examples of the result, not the limit: an API with no pack is declared the same way, following https://raw.githubusercontent.com/r28ai/charter/main/docs/.mintlify/skills/declaring-charter-tools/SKILL.md.
> Charter is for agents that act in customers' accounts: every call is checked field by field before it's sent, the app says whose account each call is for, and the same declarations list what each tool can reach. https://docs.r28.ai/charter/llms.txt says what it is and lists every page.

# translate_exchange_ids

> Convert up to 1,000 Outlook item IDs from one format to another — for example from restId to the immutable restImmutableEntryId, which survives a move.

POST`https://graph.microsoft.com/v1.0/me/translateExchangeIds`

```python outlook_translate_exchange_ids.py theme={null}
import asyncio

from charter.packs import outlook

result = asyncio.run(outlook.translate_exchange_ids.ainvoke({"inputIds": ..., "sourceIdType": ..., "targetIdType": ...}))
```

> [!NOTE]
>
> Requires `https://graph.microsoft.com/User.Read`, or any of `https://graph.microsoft.com/User.ReadBasic.All`, `https://graph.microsoft.com/User.Read.All`, `https://graph.microsoft.com/User.ReadWrite` or `https://graph.microsoft.com/User.ReadWrite.All`.

## Body

| Field | Type | Description |
| - | - | - |
| `inputIds` \* | `string`\[] | A collection of identifiers to convert. All identifiers in the collection MUST have the same source ID type, and MUST be for items in the same mailbox. Maximum size of this collection is 1,000 strings. min 1 items; max 1000 items |
| `sourceIdType` \* | [ExchangeIdFormat](https://docs.r28.ai/charter/charter/packs/outlook/other/objects.md#exchangeidformat) | The ID type of the identifiers in the inputIds parameter. `entryId`: the binary entry ID format used by MAPI clients. `ewsId`: the ID format used by Exchange Web Services clients. `immutableEntryId`: the binary MAPI-compatible immutable ID format. `restId`: the default ID format used by Microsoft Graph. `restImmutableEntryId`: the immutable ID format used by Microsoft Graph. |
| `targetIdType` \* | [ExchangeIdFormat](https://docs.r28.ai/charter/charter/packs/outlook/other/objects.md#exchangeidformat) | The requested ID type to convert to. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.