Docs
Node SDK

webhooks.signatureContract

Read signing and retry policy in the authenticated project environment.

Import and client

TypeScript
import { RelayServer } from '@relayrtc/node'
 
const relay = new RelayServer({
  apiUrl: process.env.RELAYRTC_API_URL!,
  apiKey: process.env.RELAYRTC_SECRET_KEY!,
})

Requirements

A secret key with webhooks:read. The requested resource must belong to that key's project environment.

Parameters

OptionTypeDefault / requirementPurpose
projectIdstringKey projectMust match the key's project.
environmentIdstringKey environmentMust match the key's environment.

Every method accepts RequestOptions as its final argument. Optional scope parameters go before RequestOptions. They cannot expand the key’s project or environment.

Example

TypeScript
const result = await relay.webhooks.signatureContract()

Returns

Promise<WebhookSignatureContract>. Returns the signature version, algorithm, header names, signed-content format, replay limits, backoff and retention policy.

Behavior

See webhook verification for the signed content and webhook delivery policy for retry details.

REST equivalent

GET /v1/webhooks/signature-contract. Failures throw RelayApiError.