> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://doc.youratlas.com/v1/llms.txt
> - v2: https://doc.youratlas.com/v2/llms.txt

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

# Get your webhook signing secret

GET https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret

Returns your account's signing secret (`whsec_...`). Atlas signs every webhook it sends with this secret, following the Standard Webhooks spec: each delivery carries `webhook-id`, `webhook-timestamp` and `webhook-signature` headers. Use the secret to verify that a delivery came from Atlas. The secret is created the first time you read it. During the 24 hours after a rotation, `previousExpiresAt` shows when the old secret stops signing. Treat the secret like a password: do not log it or commit it. Requires your API key; the secret returned is always the one for the account that owns the key.

Reference: https://doc.youratlas.com/api-reference/atlas-api/events-gateway/events-get-webhook-signing-secret

## Authentication

- `api-key` header (required) — Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.

## Response

### 200

Your current signing secret

- `secret` (string, required) — Signing secret in Standard Webhooks format (`whsec_` followed by base64).
- `createdAt` (datetime, required) — When this secret was created (UTC).
- `previousExpiresAt` (datetime, optional) — Present after a rotation. Until this time (UTC) deliveries are also signed with the previous secret.

## Errors

### 401 Unauthorized Error

Invalid or missing API key

- `error` (ErrorError, optional)

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, optional)

## Types

### ErrorError

- `message` (string, optional)
- `code` (string, optional)
- `requestId` (string, optional)

## Examples

**Response**

```json
{
  "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
  "createdAt": "2026-11-21T09:30:00.000Z"
}
```

**SDK Code**

```python Events Gateway_eventsGetWebhookSigningSecret_example
import requests

url = "https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret"

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

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

print(response.json())
```

```javascript Events Gateway_eventsGetWebhookSigningSecret_example
const url = 'https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret';
const options = {method: 'GET', headers: {'api-key': '<apiKey>'}};

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

```go Events Gateway_eventsGetWebhookSigningSecret_example
package main

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

func main() {

	url := "https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret"

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

	req.Header.Add("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 Events Gateway_eventsGetWebhookSigningSecret_example
require 'uri'
require 'net/http'

url = URI("https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret")

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

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

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

```java Events Gateway_eventsGetWebhookSigningSecret_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret")
  .header("api-key", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret', [
  'headers' => [
    'api-key' => '<apiKey>',
  ],
]);

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

```csharp Events Gateway_eventsGetWebhookSigningSecret_example
using RestSharp;

var client = new RestClient("https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret");
var request = new RestRequest(Method.GET);
request.AddHeader("api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Events Gateway_eventsGetWebhookSigningSecret_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.youratlas.com/v1/api/events-gateway/webhooks/signing-secret")! 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()
```