π Searching Deeds and Folders
π§Ά Getting a paginated list of deedsβ
In order to get a paginated list of deeds, you can use the following πAPI request.
π§Ά Getting a specific deed by idβ
In this case we want to access information about a specific βοΈοΈDeed that was created in the past. We can find it very easily by id with the following API request (you can view the full Swagger reference here):
- Node.js
const deedId = 60123;
const res = await fetch(`https://staging.gayadeed.it/gaya/protected/deed/find/${deedId}`, {
method: "GET",
headers: { "Authorization": accessToken }
});
const response = await res.json();
const deed = response.body;
console.log(`Deed status is ${deed.status}`);
In the example we are reading the deed's status
field, which can be one of the following values: CANCELLED
, CLOSED
, IN_PROGRESS
, OPEN
.