unsubscribeEmail
POSThttps://locksmith.unlock-protocol.com/v2/email-subscriptions/unsubscribe/:network/locks/:lockAddress
Unsubscribe email from lock
Request
Path Parameters
network integerrequired
Network id.
lockAddress stringrequired
Lock address.
Responses
- 200
- 400
- 500
Successfully unsubscribed email from lock
- application/json
- Schema
- Example (auto)
Schema
successboolean
{
"success": true
}
Invalid input received. Bad request.
- application/json
- Schema
- Example (auto)
Schema
messagestring
Default value:
Response body schema is invalid.
errorstringnullable
{
"message": "Response body schema is invalid.",
"error": "string"
}
Unable to fullfil request due to internal server error.
- application/json
- Schema
- Example (auto)
Schema
messagestring
Default value:
There was an error in fullfiling the request.
{
"message": "There was an error in fullfiling the request."
}
Authorization: http
name: Usertype: httpscheme: bearerbearerFormat: JWT
- 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://locksmith.unlock-protocol.com/v2/email-subscriptions/unsubscribe/:network/locks/:lockAddress");
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