# Get Message Template by Name

> API endpoint that returns message templates filtered by name, using the PM.MessageTemplate scope.

Returns message templates, filtered by name.

## API Endpoint

`GET` `{accessURL}/{organizationName}/identity_/api/MessageTemplate`

Replace `{accessURL}` in all endpoint paths with the base URL for your cloud platform:

| Cloud platform | Access URL |
| --- | --- |
| Automation Cloud | `https://cloud.uipath.com/` |
| Automation Cloud Public Sector | `https://govcloud.uipath.us/` |
| Automation Cloud Dedicated | `https://{customURL}.dedicated.uipath.com/` |

## Scopes

Requires the following scopes:

* PM.MessageTemplate
* PM.MessageTemplate.Read

## Request Headers

```
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
```

## Query Parameters

| Param | Data type | Description |
| --- | --- | --- |
| `name` | String | The name of the message template. |

## Responses

### 200 OK

Returns the message templates filtered by their names.

```
{
  "id": 0,
  "name": "string",
  "value": "string"
}
```
