exportKeys
GEThttps://locksmith.unlock-protocol.com/v2/api/:network/locks/:lockAddress/export-keys
Starts Job process to get all the keys for the given lock
Request
Path Parameters
network integerrequired
Network id.
lockAddress stringrequired
Lock address.
Query Parameters
query stringrequired
Query you want to search for.
filterKey stringrequired
The key you want to search on.
expiration string
Expiration time
approval string
Approval status (relevant for offchain approvals on events for example)
Responses
- 200
- 401
- 404
Successfully started Keys Job
- application/json
- Schema
- Example (auto)
Schema
jobIdstring
{
"jobId": "string"
}
Unauthorized
Not Found
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.Get, "https://locksmith.unlock-protocol.com/v2/api/:network/locks/:lockAddress/export-keys");
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