Wait for a proposal decision
curl --request GET \
--url https://api.getlurk.com/v1/proposals/{id}/wait \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/proposals/{id}/wait', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/proposals/{id}/wait"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "approved",
"included_changes": [
1
],
"applied": [
"<string>"
],
"key_claims": [
{
"id": "<string>",
"name": "<string>",
"status": "pending",
"expires_at": "2023-11-07T05:31:56Z",
"pkce_required": true,
"api_key_id": "<string>",
"code_issue_count": 1
}
]
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Proposals
Wait for a proposal decision
After sharing the approval link, wait here for the person’s decision. Continue when approved, stop when declined, and call again with the same ID when still_waiting.
GET
/
v1
/
proposals
/
{id}
/
wait
Wait for a proposal decision
curl --request GET \
--url https://api.getlurk.com/v1/proposals/{id}/wait \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/proposals/{id}/wait', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/proposals/{id}/wait"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"status": "approved",
"included_changes": [
1
],
"applied": [
"<string>"
],
"key_claims": [
{
"id": "<string>",
"name": "<string>",
"status": "pending",
"expires_at": "2023-11-07T05:31:56Z",
"pkce_required": true,
"api_key_id": "<string>",
"code_issue_count": 1
}
]
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Authorizations
Response
Wait for a proposal decision