Get webhook send by id
GEThttps://app.phasetwo.io/realms/:realm/webhooks/:webhookId/sends/:sendId
Get webhook send by id
Request
Path Parameters
realm stringrequired
realm name (not id!)
webhookId stringrequired
webhook id
sendId stringrequired
send id
Responses
- 200
- 404
success
- application/json
- Schema
- Example (auto)
Schema
idstring
typestring
statusinteger
status_messagestring
retriedinteger
sent_atstring
event_idstring
keycloak_event_typestring
keycloak_event_idstring
webhook object
payloadstring
{
"id": "string",
"type": "string",
"status": 0,
"status_message": "string",
"retried": 0,
"sent_at": "string",
"event_id": "string",
"keycloak_event_type": "string",
"keycloak_event_id": "string",
"webhook": {
"attributes": {},
"id": "string",
"enabled": true,
"url": "string",
"secret": "string",
"createdBy": "string",
"createdAt": 0,
"realm": "string",
"eventTypes": [
"string"
]
},
"payload": "string"
}
Webhook or send doesn't exist
Authorization: http
name: access_tokentype: httpscheme: bearerbearerFormat:
- 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.Get, "https://app.phasetwo.io/realms/:realm/webhooks/:webhookId/sends/:sendId");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear