# Link an OAuth mailbox (internal) **POST /email-data/{caseId}/add-email-provider** Inbox-connect plumbing: exchanges the OAuth code for a mailbox grant, links the mailbox to the case and returns it. Tokens are never returned. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Path parameters - **caseId** (string) ### Body: application/json (object) - **redirectUri** (string) - **code** (string) - **extractionCode** (string) ## Responses ### 201 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)