Skip to main content
PUT
/
webhook-endpoints
/
{id}
Update an webhook endpoint
curl --request PUT \
  --url https://api.syntage.com/webhook-endpoints/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "url": "https://example.com/endpoint",
  "events": [
    "credential.created",
    "credential.updated"
  ],
  "enabled": true,
  "contentType": "application/ld+json"
}
'
{
  "@context": "/contexts/WebhookEndpoint",
  "@id": "/webhook-endpoints/91106968-1abd-4d64-85c1-4e73d96fb997",
  "@type": "WebhookEndpoint",
  "id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
  "url": "https://example.com/endpoint",
  "signingSecret": "54471a278d46c86ec6cd365983552a28",
  "events": [
    "credential.created",
    "credential.updated"
  ],
  "enabled": true,
  "contentType": "application/ld+json",
  "createdAt": "2020-01-01T12:15:00.000Z",
  "updatedAt": "2020-01-01T12:15:00.000Z"
}

Authorizations

X-API-Key
string
header
required

Your API key is available in the Production and Sandbox dashboards.

Path Parameters

id
string<uuid>
required

Body

application/json
url
string<url>
required

The URL of the webhook endpoint

Example:

"https://example.com/endpoint"

events
enum<string>[]
required

The list of events to enable for this endpoint.

Available options:
credential.created,
credential.updated,
link.created,
link.updated,
link.deleted,
extraction.created,
extraction.updated,
invoice.created,
invoice.updated,
invoice_payment.created,
invoice_payment.updated,
invoice_line_item.created,
invoice_line_item.updated,
tax_return.created,
tax_return.updated,
export.created,
export.updated,
tax_status.created,
tax_status.updated,
tax_compliance_check.created,
tax_compliance_check.updated,
tax_retention.created,
tax_retention.updated,
electronic_accounting_record.created,
electronic_accounting_record.updated,
file.created,
rpc_entidades.created,
rpc_entidades.updated,
rpc_acto.created,
rpc_acto.updated,
rpc_socios.created,
rpc_socios.updated,
rug_garantia.created,
rug_garantia.updated,
buro_de_credito_report.created,
buro_de_credito_report.updated,
sat_certificate.created,
sat_certificate.updated,
background_check.created
Example:
["credential.created", "credential.updated"]
enabled
boolean
default:true
required

Disable the webhook endpoint if set to false

Example:

true

contentType
enum<string>
default:application/ld+json
required
Available options:
application/ld+json,
application/json

Response

Webhook endpoint resource response

@context
string
default:/contexts/WebhookEndpoint
@id
string<iri-reference>

Webhook Endpoint IRI reference

Example:

"/webhook-endpoints/91106968-1abd-4d64-85c1-4e73d96fb997"

@type
string
default:WebhookEndpoint
id
string<uuid>
Example:

"e0a24894-7fbf-48ae-bfb0-efaae30a6319"

url
string<url>

The URL of the webhook endpoint

Example:

"https://example.com/endpoint"

signingSecret
string
Example:

"54471a278d46c86ec6cd365983552a28"

events
enum<string>[]

The list of events to enable for this endpoint.

Available options:
credential.created,
credential.updated,
link.created,
link.updated,
link.deleted,
extraction.created,
extraction.updated,
invoice.created,
invoice.updated,
invoice_payment.created,
invoice_payment.updated,
invoice_line_item.created,
invoice_line_item.updated,
tax_return.created,
tax_return.updated,
export.created,
export.updated,
tax_status.created,
tax_status.updated,
tax_compliance_check.created,
tax_compliance_check.updated,
tax_retention.created,
tax_retention.updated,
electronic_accounting_record.created,
electronic_accounting_record.updated,
file.created,
rpc_entidades.created,
rpc_entidades.updated,
rpc_acto.created,
rpc_acto.updated,
rpc_socios.created,
rpc_socios.updated,
rug_garantia.created,
rug_garantia.updated,
buro_de_credito_report.created,
buro_de_credito_report.updated,
sat_certificate.created,
sat_certificate.updated,
background_check.created
Example:
["credential.created", "credential.updated"]
enabled
boolean
default:true

Disable the webhook endpoint if set to false

Example:

true

contentType
enum<string>
default:application/ld+json
Available options:
application/ld+json,
application/json
createdAt
string

Date and time the resource was created

Example:

"2020-01-01T12:15:00.000Z"

updatedAt
string

Date and time the resource was last updated

Example:

"2020-01-01T12:15:00.000Z"