Add addresses to a webhook
POSThttps://api.fuse.io/api/v0/notifications/webhook/add-addresses
Associate new addresses with an existing webhook to listen for their events.
Request
Query Parameters
apiKey stringrequired
The public API key for authentication.
Header Parameters
API-SECRET stringrequired
The secret API key for authentication.
- application/json
Bodyrequired
webhookId string
addresses string[]
Responses
- 201
- 403
Addresses successfully added to the webhook.
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
webhookId string
addresses string[]
[
{
"webhookId": "string",
"addresses": [
"string"
]
}
]
Access to the resource is forbidden.
- application/json
- Schema
- Example (auto)
Schema
statusCode integer
Example:
403
errorMessage string
Example:
Forbidden resource
error string
Example:
Forbidden
{
"statusCode": 403,
"errorMessage": "Forbidden resource",
"error": "Forbidden"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.fuse.io/api/v0/notifications/webhook/add-addresses");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"webhookId\": \"string\",\n \"addresses\": [\n \"string\"\n ]\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear