> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetAssignedSenderDetails

# Package: emails

# Namespace: AutomationEmailActionsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/automation-email-action/get-assigned-sender-details.md

## Permission Scopes:
Manage Email Marketing: SCOPE.DC-PROMOTE.EMAIL-MARKETING

## Introduction

Retrieves the ID of the sender details assigned to an automation's send email action.

Returns an empty value if the action has no sender details explicitly assigned. In this case,
the action uses the site's default sender details, or a Wix-branded fallback if the site has none.

---

## REST API

### Schema

```
 Method: getAssignedSenderDetails
 Description: Retrieves the GUID of the sender details assigned to an automation's send email action.  Returns an empty value if the action has no sender details explicitly assigned. In this case, the action uses the site's default sender details, or a Wix-branded fallback if the site has none.
 URL: https://www.wixapis.com/emails-automations/v1/automations/{automationId}/email-actions/{actionId}/sender-details
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  automationId, actionId
 Method parameters: 
   param name: actionId | type:   none | required: true 
   param name: automationId | type:   none | required: true 
 Return type: GetAssignedSenderDetailsResponse
  - name: senderDetailsId | type: string | description: Sender details GUID.  Returned only when the action has sender details explicitly assigned to it. Otherwise, the action uses the site's default sender details, or a Wix-branded fallback if the site has none.  | validation: format GUID

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: NOT_AN_EMAIL_ACTION | Description: none
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: AUTOMATION_ACTION_NOT_FOUND | Description: none


```

### Examples

### Get Assigned Sender Details
Retrieve the ID of the sender details assigned to an automation's send email action.

```curl
curl -X GET \
'https://www.wixapis.com/emails-automations/v1/automations/0029458c-a8e1-4d04-bd88-ad0af11cb678/email-actions/f6f72a5c-77ef-4672-ada1-83aa45de7f2c/sender-details' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.automationsEmailActions.automationEmailAction.getAssignedSenderDetails(identifiers)
 Description: Retrieves the GUID of the sender details assigned to an automation's send email action.  Returns an empty value if the action has no sender details explicitly assigned. In this case, the action uses the site's default sender details, or a Wix-branded fallback if the site has none.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  identifiers.automationId, identifiers.actionId, identifiers
 Method parameters: 
   param name: identifiers | type: GetAssignedSenderDetailsIdentifiers  none | required: true 
        - name: automationId | type: string | description: GUID of the automation the action belongs to. | required: true | validation: format GUID
        - name: actionId | type: string | description: GUID of the send email action within the automation. | required: true | validation: format GUID
 Return type: PROMISE<GetAssignedSenderDetailsResponse>
  - name: senderDetailsId | type: string | description: Sender details GUID.  Returned only when the action has sender details explicitly assigned to it. Otherwise, the action uses the site's default sender details, or a Wix-branded fallback if the site has none.  | validation: format GUID

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: NOT_AN_EMAIL_ACTION | Description: none
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: AUTOMATION_ACTION_NOT_FOUND | Description: none


```

### Examples

### Get assigned sender details
Retrieve the ID of the sender details assigned to an automation's send email action.

```javascript
import { automationEmailAction } from "@wix/automations-email-actions";

async function getAssignedSenderDetails() {
  const response = await automationEmailAction.getAssignedSenderDetails({
    automationId: "0029458c-a8e1-4d04-bd88-ad0af11cb678",
    actionId: "f6f72a5c-77ef-4672-ada1-83aa45de7f2c",
  });
}

/* Promise resolves to:
 * {
 *   "senderDetailsId": "3f9c1a2e-6b7d-4e8f-9a1b-5c2d3e4f5a6b"
 * }
 */

```

### getAssignedSenderDetails (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { automationEmailAction } from '@wix/automations-email-actions';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { automationEmailAction },
  // Include the auth strategy and host as relevant
});


async function getAssignedSenderDetails(identifiers) {
  const response = await myWixClient.automationEmailAction.getAssignedSenderDetails(identifiers);
};
```

---