remagicaDocs home
API referenceWebhooks

Get a webhook endpoint

GET
/webhook-endpoints/{endpointId}

Needs a key withwebhooks:read

Returns one endpoint (without its secret).

Requires scope webhooks:read.

Authorization

apiKey
headerx-api-key<token>

An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.

Path Parameters

endpointId*string
Length1 <= length <= 128

Response Body

The endpoint.

application/json
  1. response

A webhook endpoint. Its signing secret is never listed: it's shown once, when the endpoint is created or its secret is rotated.

createdAt*string
Formatdate-time
createdByUserId*|

Who added it; null when an API key did, or the person has left.

description*string
disabledReason*|

Why it was switched off after failing, until it's switched on again.

enabled*boolean
events*array<>
id*string
updatedAt*string
Formatdate-time
url*string
Example Request
curl -X GET 'https://api.remagica.com/api/v1/webhook-endpoints/whe_4f5a8b9c0d1e2f3a'
Example Response
{  "createdAt": "2026-10-21T12:00:00.000Z",  "createdByUserId": "f3656abb-5b3d-4f60-8e2a-1d9c6b4f7e05",  "description": "Product shots for the autumn campaign.",  "disabledReason": "string",  "enabled": true,  "events": [    "generation.succeeded"  ],  "id": "whe_4f5a8b9c0d1e2f3a",  "updatedAt": "2026-10-21T12:00:00.000Z",  "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"}