Skip to main content

πŸ” 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):

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.