> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.chatbridge.mx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.chatbridge.mx/_mcp/server.

# Get sender

GET https://connect.chatbridge.mx/v1/email/sender

Retrieves the sender (mailing output) linked to the authenticated API Key. Only public data is returned; the connection credentials are never exposed. Responds `400` with `errorCode` 569 if the output is no longer available for the account.

Reference: https://docs.chatbridge.mx/email/sender/get-email-sender

## Authentication

- `x-api-key` header (required) — Account authentication key. The App-Key must have the Email channel enabled and a sender (mailing output) linked; it cannot be used against the endpoints of other channels.
- `Authorization` header (bearer token, required) — OAuth 2.0 access token issued by `POST /api/oauth/token` (client-credentials). Takes precedence over `x-api-key` when both are sent. See the Authentication section.

## Response

### 200

Sender of the App-Key.

- `_id` (string, optional) — Id of the sender (mailing output).
- `name` (string, optional)
- `provider` (string, optional) — Email provider of the output.
- `from_name` (string, optional, nullable) — Display name shown to the recipient.
- `from_email` (string, optional, nullable) — Address the emails are sent from.

## Errors

### 400 Bad Request Error

The sender linked to the App-Key is no longer available for the account.

- `message` (string, optional)
- `error` (string, optional)
- `statusCode` (integer, optional)
- `errorCode` (integer, optional)

### 401 Unauthorized Error

Authentication is missing or invalid.

- `message` (string, optional)
- `error` (string, optional)
- `statusCode` (integer, optional)
- `errorCode` (integer, optional)

### 403 Forbidden Error

The API Key does not have access to the Email channel.

- `message` (string, optional)
- `error` (string, optional)
- `statusCode` (integer, optional)
- `errorCode` (integer, optional)

### 429 Too Many Requests Error

The requests-per-minute limit was exceeded.

- `message` (string, optional)
- `error` (string, optional)
- `statusCode` (integer, optional)
- `errorCode` (integer, optional)

## Examples

**Response**

```json
{
  "_id": "6a4bffd5e77672e33fd5304f",
  "name": "Notifications",
  "provider": "Amazon SES",
  "from_name": "ChatBridge",
  "from_email": "no-reply@chatbridge.mx"
}
```

**SDK Code**

```python Sender_getEmailSender_example
import requests

url = "https://connect.chatbridge.mx/v1/email/sender"

headers = {"x-api-key": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Sender_getEmailSender_example
const url = 'https://connect.chatbridge.mx/v1/email/sender';
const options = {method: 'GET', headers: {'x-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Sender_getEmailSender_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://connect.chatbridge.mx/v1/email/sender"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Sender_getEmailSender_example
require 'uri'
require 'net/http'

url = URI("https://connect.chatbridge.mx/v1/email/sender")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Sender_getEmailSender_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://connect.chatbridge.mx/v1/email/sender")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php Sender_getEmailSender_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://connect.chatbridge.mx/v1/email/sender', [
  'headers' => [
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Sender_getEmailSender_example
using RestSharp;

var client = new RestClient("https://connect.chatbridge.mx/v1/email/sender");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Sender_getEmailSender_example
import Foundation

let headers = ["x-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://connect.chatbridge.mx/v1/email/sender")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```