Claims
On this page, we'll dive into the different claim endpoints you can use to manage the bounty claims of your solvers programmatically. We'll look at how to query, create, update, and delete claims.
The Claim model
The Claim model contains all the information about the bounty claims of your solvers, such as their status and solver details.
Required properties
- Name
id
- Type
- string
- Description
Unique identifier for the object.
- Name
status
- Type
- string
- Description
Status of the claim
Can be one of:
pending
,accepted
,payment_processing
,payment_succeeded
- Name
solver
- Type
- Solver
- Description
Details of the solver on the platform where the issue resides. For instance, if the issue was created on Github, solver's user details on Github is returned.
- Name
bounty
- Type
- Bounty
- Description
Details of the bounty
- Name
created_at
- Type
- string
- Description
Timestamp of when the claim was created, in ISO 8601 format:
YYYY-MM-DDTHH:MM:SSSZ
.
- Name
updated_at
- Type
- string
- Description
Timestamp of when the claim was last updated, in ISO 8601 format:
YYYY-MM-DDTHH:MM:SSSZ
.
List claims by org
This public endpoint allows you to retrieve a paginated list of claims created on the given organization's bounties.
Optional attributes
- Name
limit
- Type
- integer
- Description
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- Name
cursor
- Type
- string
- Description
A cursor for use in pagination. It's an object ID that defines your place in the list.
Request
curl "https://console.algora.io/api/orgs/Uber4Coding/claims?limit=1"
Response
{
"next_cursor": "clcgjk85m0001s89bwe331qtg",
"items": [
{
"id": "clcgjrvlj0002s89bcufifygl",
"status": "pending",
"solver": {
"id": 118012453,
"login": "SKG2310",
"avatar_url": "https://avatars.githubusercontent.com/u/118012453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SKG2310",
"html_url": "https://github.com/SKG2310",
"followers_url": "https://api.github.com/users/SKG2310/followers",
"following_url": "https://api.github.com/users/SKG2310/following{/other_user}",
"gists_url": "https://api.github.com/users/SKG2310/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SKG2310/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SKG2310/subscriptions",
"organizations_url": "https://api.github.com/users/SKG2310/orgs",
"repos_url": "https://api.github.com/users/SKG2310/repos",
"events_url": "https://api.github.com/users/SKG2310/events{/privacy}",
"received_events_url": "https://api.github.com/users/SKG2310/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"bounty": {
"id": "clcg36as9000bs8swc544ee8c",
"forge": "github",
"repo_owner": "Uber4Coding",
"repo_name": "dev",
"number": 10,
"amount": 10000,
"currency": "USD",
"status": "active",
"created_at": "2023-01-03T10:27:05.626Z",
"updated_at": "2023-01-03T13:13:03.884Z",
"issue": {
"id": 1505117323,
"url": "https://api.github.com/repos/Uber4Coding/dev/issues/10",
"repository_url": "https://api.github.com/repos/Uber4Coding/dev",
"labels_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/labels{/name}",
"comments_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/comments",
"events_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/events",
"html_url": "https://github.com/Uber4Coding/dev/issues/10",
"number": 10,
"state": "open",
"state_reason": null,
"title": "Add connector X",
"body": null,
"locked": false,
"active_lock_reason": null,
"comments": 4,
"closed_at": null,
"created_at": "2022-12-20T19:09:40.000Z",
"updated_at": "2022-12-20T19:10:18.000Z",
"draft": null,
"body_html": null,
"body_text": null,
"timeline_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/timeline",
"author_association": "MEMBER",
"user": {
"id": 17045339,
"login": "zcesur",
"avatar_url": "https://avatars.githubusercontent.com/u/17045339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zcesur",
"html_url": "https://github.com/zcesur",
"followers_url": "https://api.github.com/users/zcesur/followers",
"following_url": "https://api.github.com/users/zcesur/following{/other_user}",
"gists_url": "https://api.github.com/users/zcesur/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zcesur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zcesur/subscriptions",
"organizations_url": "https://api.github.com/users/zcesur/orgs",
"repos_url": "https://api.github.com/users/zcesur/repos",
"events_url": "https://api.github.com/users/zcesur/events{/privacy}",
"received_events_url": "https://api.github.com/users/zcesur/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"pull_request": null
}
},
"created_at": "2023-01-03T18:11:46.231Z",
"updated_at": "2023-01-03T18:12:23.232Z"
}
]
}
List claims
This endpoint allows you to retrieve a paginated list of the claims created on your organization's bounties.
Optional attributes
- Name
limit
- Type
- integer
- Description
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
- Name
cursor
- Type
- string
- Description
A cursor for use in pagination. It's an object ID that defines your place in the list.
Request
curl "https://console.algora.io/api/claims?limit=1" \
-H "authorization: Bearer $TOKEN"
Response
{
"next_cursor": "clcgjk85m0001s89bwe331qtg",
"items": [
{
"id": "clcgjrvlj0002s89bcufifygl",
"status": "pending",
"solver": {
"id": 118012453,
"login": "SKG2310",
"avatar_url": "https://avatars.githubusercontent.com/u/118012453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SKG2310",
"html_url": "https://github.com/SKG2310",
"followers_url": "https://api.github.com/users/SKG2310/followers",
"following_url": "https://api.github.com/users/SKG2310/following{/other_user}",
"gists_url": "https://api.github.com/users/SKG2310/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SKG2310/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SKG2310/subscriptions",
"organizations_url": "https://api.github.com/users/SKG2310/orgs",
"repos_url": "https://api.github.com/users/SKG2310/repos",
"events_url": "https://api.github.com/users/SKG2310/events{/privacy}",
"received_events_url": "https://api.github.com/users/SKG2310/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"bounty": {
"id": "clcg36as9000bs8swc544ee8c",
"forge": "github",
"repo_owner": "Uber4Coding",
"repo_name": "dev",
"number": 10,
"amount": 10000,
"currency": "USD",
"status": "active",
"created_at": "2023-01-03T10:27:05.626Z",
"updated_at": "2023-01-03T13:13:03.884Z",
"issue": {
"id": 1505117323,
"url": "https://api.github.com/repos/Uber4Coding/dev/issues/10",
"repository_url": "https://api.github.com/repos/Uber4Coding/dev",
"labels_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/labels{/name}",
"comments_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/comments",
"events_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/events",
"html_url": "https://github.com/Uber4Coding/dev/issues/10",
"number": 10,
"state": "open",
"state_reason": null,
"title": "Add connector X",
"body": null,
"locked": false,
"active_lock_reason": null,
"comments": 4,
"closed_at": null,
"created_at": "2022-12-20T19:09:40.000Z",
"updated_at": "2022-12-20T19:10:18.000Z",
"draft": null,
"body_html": null,
"body_text": null,
"timeline_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/timeline",
"author_association": "MEMBER",
"user": {
"id": 17045339,
"login": "zcesur",
"avatar_url": "https://avatars.githubusercontent.com/u/17045339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zcesur",
"html_url": "https://github.com/zcesur",
"followers_url": "https://api.github.com/users/zcesur/followers",
"following_url": "https://api.github.com/users/zcesur/following{/other_user}",
"gists_url": "https://api.github.com/users/zcesur/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zcesur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zcesur/subscriptions",
"organizations_url": "https://api.github.com/users/zcesur/orgs",
"repos_url": "https://api.github.com/users/zcesur/repos",
"events_url": "https://api.github.com/users/zcesur/events{/privacy}",
"received_events_url": "https://api.github.com/users/zcesur/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"pull_request": null
}
},
"created_at": "2023-01-03T18:11:46.231Z",
"updated_at": "2023-01-03T18:12:23.232Z"
}
]
}
Retrieve a claim
Retrieves the details of a bounty claim.
Request
curl "https://console.algora.io/api/claims/clcgjrvlj0002s89bcufifygl"
Response
{
"id": "clcgjrvlj0002s89bcufifygl",
"status": "pending",
"solver": {
"id": 118012453,
"login": "SKG2310",
"avatar_url": "https://avatars.githubusercontent.com/u/118012453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SKG2310",
"html_url": "https://github.com/SKG2310",
"followers_url": "https://api.github.com/users/SKG2310/followers",
"following_url": "https://api.github.com/users/SKG2310/following{/other_user}",
"gists_url": "https://api.github.com/users/SKG2310/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SKG2310/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SKG2310/subscriptions",
"organizations_url": "https://api.github.com/users/SKG2310/orgs",
"repos_url": "https://api.github.com/users/SKG2310/repos",
"events_url": "https://api.github.com/users/SKG2310/events{/privacy}",
"received_events_url": "https://api.github.com/users/SKG2310/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"bounty": {
"id": "clcg36as9000bs8swc544ee8c",
"forge": "github",
"repo_owner": "Uber4Coding",
"repo_name": "dev",
"number": 10,
"amount": 10000,
"currency": "USD",
"status": "active",
"created_at": "2023-01-03T10:27:05.626Z",
"updated_at": "2023-01-03T13:13:03.884Z",
"issue": {
"id": 1505117323,
"url": "https://api.github.com/repos/Uber4Coding/dev/issues/10",
"repository_url": "https://api.github.com/repos/Uber4Coding/dev",
"labels_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/labels{/name}",
"comments_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/comments",
"events_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/events",
"html_url": "https://github.com/Uber4Coding/dev/issues/10",
"number": 10,
"state": "open",
"state_reason": null,
"title": "Add connector X",
"body": null,
"locked": false,
"active_lock_reason": null,
"comments": 4,
"closed_at": null,
"created_at": "2022-12-20T19:09:40.000Z",
"updated_at": "2022-12-20T19:10:18.000Z",
"draft": null,
"body_html": null,
"body_text": null,
"timeline_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/timeline",
"author_association": "MEMBER",
"user": {
"id": 17045339,
"login": "zcesur",
"avatar_url": "https://avatars.githubusercontent.com/u/17045339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zcesur",
"html_url": "https://github.com/zcesur",
"followers_url": "https://api.github.com/users/zcesur/followers",
"following_url": "https://api.github.com/users/zcesur/following{/other_user}",
"gists_url": "https://api.github.com/users/zcesur/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zcesur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zcesur/subscriptions",
"organizations_url": "https://api.github.com/users/zcesur/orgs",
"repos_url": "https://api.github.com/users/zcesur/repos",
"events_url": "https://api.github.com/users/zcesur/events{/privacy}",
"received_events_url": "https://api.github.com/users/zcesur/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"pull_request": null
}
},
"created_at": "2023-01-03T18:11:46.231Z",
"updated_at": "2023-01-03T18:12:23.232Z"
}
Create claim
Creates a bounty claim on behalf of your solver.
Required attributes
- Name
repo_owner
- Type
- string
- Description
Owner of the repository.
- Name
repo_name
- Type
- string
- Description
Name of the repository.
- Name
claims
- Type
- array of objects
- Description
List of claims to create.
- Name
solver
- Type
- string
- Description
Username of the solver on the platform where the issue resides.
- Name
status
- Type
- string
- Description
Status of the claim
Can be one of:
pending
,accepted
Request
curl "https://console.algora.io/api/claims" \
-H "authorization: Bearer $TOKEN" \
-H "content-Type: application/json" \
--data-raw '{"repo_owner":"Uber4Coding","repo_name":"dev","number":10,"solver":"SKG2310","status":"pending"}'
Response
{
"id": "clcgjrvlj0002s89bcufifygl",
"status": "pending",
"solver": {
"id": 118012453,
"login": "SKG2310",
"avatar_url": "https://avatars.githubusercontent.com/u/118012453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SKG2310",
"html_url": "https://github.com/SKG2310",
"followers_url": "https://api.github.com/users/SKG2310/followers",
"following_url": "https://api.github.com/users/SKG2310/following{/other_user}",
"gists_url": "https://api.github.com/users/SKG2310/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SKG2310/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SKG2310/subscriptions",
"organizations_url": "https://api.github.com/users/SKG2310/orgs",
"repos_url": "https://api.github.com/users/SKG2310/repos",
"events_url": "https://api.github.com/users/SKG2310/events{/privacy}",
"received_events_url": "https://api.github.com/users/SKG2310/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"bounty": {
"id": "clcg36as9000bs8swc544ee8c",
"forge": "github",
"repo_owner": "Uber4Coding",
"repo_name": "dev",
"number": 10,
"amount": 10000,
"currency": "USD",
"status": "active",
"created_at": "2023-01-03T10:27:05.626Z",
"updated_at": "2023-01-03T13:13:03.884Z",
"issue": {
"id": 1505117323,
"url": "https://api.github.com/repos/Uber4Coding/dev/issues/10",
"repository_url": "https://api.github.com/repos/Uber4Coding/dev",
"labels_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/labels{/name}",
"comments_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/comments",
"events_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/events",
"html_url": "https://github.com/Uber4Coding/dev/issues/10",
"number": 10,
"state": "open",
"state_reason": null,
"title": "Add connector X",
"body": null,
"locked": false,
"active_lock_reason": null,
"comments": 4,
"closed_at": null,
"created_at": "2022-12-20T19:09:40.000Z",
"updated_at": "2022-12-20T19:10:18.000Z",
"draft": null,
"body_html": null,
"body_text": null,
"timeline_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/timeline",
"author_association": "MEMBER",
"user": {
"id": 17045339,
"login": "zcesur",
"avatar_url": "https://avatars.githubusercontent.com/u/17045339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zcesur",
"html_url": "https://github.com/zcesur",
"followers_url": "https://api.github.com/users/zcesur/followers",
"following_url": "https://api.github.com/users/zcesur/following{/other_user}",
"gists_url": "https://api.github.com/users/zcesur/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zcesur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zcesur/subscriptions",
"organizations_url": "https://api.github.com/users/zcesur/orgs",
"repos_url": "https://api.github.com/users/zcesur/repos",
"events_url": "https://api.github.com/users/zcesur/events{/privacy}",
"received_events_url": "https://api.github.com/users/zcesur/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"pull_request": null
}
},
"created_at": "2023-01-03T18:11:46.231Z",
"updated_at": "2023-01-03T18:12:23.232Z"
}
Create claim by bounty ID
Creates a bounty claim on behalf of your solver for the given bounty.
Required attributes
- Name
repo_owner
- Type
- string
- Description
Owner of the repository.
- Name
repo_name
- Type
- string
- Description
Name of the repository.
- Name
claims
- Type
- array of objects
- Description
List of claims to create.
- Name
solver
- Type
- string
- Description
Username of the solver on the platform where the issue resides.
- Name
status
- Type
- string
- Description
Status of the claim
Can be one of:
pending
,accepted
Request
curl "https://console.algora.io/api/bounties/clcg36as9000bs8swc544ee8c/claims" \
-H "authorization: Bearer $TOKEN" \
-H "content-Type: application/json" \
--data-raw '{"repo_owner":"Uber4Coding","repo_name":"dev","number":10,"solver":"SKG2310","status":"pending"}'
Response
{
"id": "clcgjrvlj0002s89bcufifygl",
"status": "pending",
"solver": {
"id": 118012453,
"login": "SKG2310",
"avatar_url": "https://avatars.githubusercontent.com/u/118012453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SKG2310",
"html_url": "https://github.com/SKG2310",
"followers_url": "https://api.github.com/users/SKG2310/followers",
"following_url": "https://api.github.com/users/SKG2310/following{/other_user}",
"gists_url": "https://api.github.com/users/SKG2310/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SKG2310/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SKG2310/subscriptions",
"organizations_url": "https://api.github.com/users/SKG2310/orgs",
"repos_url": "https://api.github.com/users/SKG2310/repos",
"events_url": "https://api.github.com/users/SKG2310/events{/privacy}",
"received_events_url": "https://api.github.com/users/SKG2310/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"bounty": {
"id": "clcg36as9000bs8swc544ee8c",
"forge": "github",
"repo_owner": "Uber4Coding",
"repo_name": "dev",
"number": 10,
"amount": 10000,
"currency": "USD",
"status": "active",
"created_at": "2023-01-03T10:27:05.626Z",
"updated_at": "2023-01-03T13:13:03.884Z",
"issue": {
"id": 1505117323,
"url": "https://api.github.com/repos/Uber4Coding/dev/issues/10",
"repository_url": "https://api.github.com/repos/Uber4Coding/dev",
"labels_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/labels{/name}",
"comments_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/comments",
"events_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/events",
"html_url": "https://github.com/Uber4Coding/dev/issues/10",
"number": 10,
"state": "open",
"state_reason": null,
"title": "Add connector X",
"body": null,
"locked": false,
"active_lock_reason": null,
"comments": 4,
"closed_at": null,
"created_at": "2022-12-20T19:09:40.000Z",
"updated_at": "2022-12-20T19:10:18.000Z",
"draft": null,
"body_html": null,
"body_text": null,
"timeline_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/timeline",
"author_association": "MEMBER",
"user": {
"id": 17045339,
"login": "zcesur",
"avatar_url": "https://avatars.githubusercontent.com/u/17045339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zcesur",
"html_url": "https://github.com/zcesur",
"followers_url": "https://api.github.com/users/zcesur/followers",
"following_url": "https://api.github.com/users/zcesur/following{/other_user}",
"gists_url": "https://api.github.com/users/zcesur/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zcesur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zcesur/subscriptions",
"organizations_url": "https://api.github.com/users/zcesur/orgs",
"repos_url": "https://api.github.com/users/zcesur/repos",
"events_url": "https://api.github.com/users/zcesur/events{/privacy}",
"received_events_url": "https://api.github.com/users/zcesur/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"pull_request": null
}
},
"created_at": "2023-01-03T18:11:46.231Z",
"updated_at": "2023-01-03T18:12:23.232Z"
}
Update a claim
Updates properties on a bounty claim.
Optional attributes
- Name
status
- Type
- string
- Description
Status of the claim
Can be one of:
pending
,accepted
Request
curl "https://console.algora.io/api/claims/clcgjrvlj0002s89bcufifygl" \
-X "PATCH" \
-H "authorization: Bearer $TOKEN" \
-H "content-Type: application/json" \
--data-raw '{"status":"accepted"}'
Response
{
"id": "clcgjrvlj0002s89bcufifygl",
"status": "accepted",
"solver": {
"id": 118012453,
"login": "SKG2310",
"avatar_url": "https://avatars.githubusercontent.com/u/118012453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SKG2310",
"html_url": "https://github.com/SKG2310",
"followers_url": "https://api.github.com/users/SKG2310/followers",
"following_url": "https://api.github.com/users/SKG2310/following{/other_user}",
"gists_url": "https://api.github.com/users/SKG2310/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SKG2310/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SKG2310/subscriptions",
"organizations_url": "https://api.github.com/users/SKG2310/orgs",
"repos_url": "https://api.github.com/users/SKG2310/repos",
"events_url": "https://api.github.com/users/SKG2310/events{/privacy}",
"received_events_url": "https://api.github.com/users/SKG2310/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"bounty": {
"id": "clcg36as9000bs8swc544ee8c",
"forge": "github",
"repo_owner": "Uber4Coding",
"repo_name": "dev",
"number": 10,
"amount": 10000,
"currency": "USD",
"status": "active",
"created_at": "2023-01-03T10:27:05.626Z",
"updated_at": "2023-01-03T13:13:03.884Z",
"issue": {
"id": 1505117323,
"url": "https://api.github.com/repos/Uber4Coding/dev/issues/10",
"repository_url": "https://api.github.com/repos/Uber4Coding/dev",
"labels_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/labels{/name}",
"comments_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/comments",
"events_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/events",
"html_url": "https://github.com/Uber4Coding/dev/issues/10",
"number": 10,
"state": "open",
"state_reason": null,
"title": "Add connector X",
"body": null,
"locked": false,
"active_lock_reason": null,
"comments": 4,
"closed_at": null,
"created_at": "2022-12-20T19:09:40.000Z",
"updated_at": "2022-12-20T19:10:18.000Z",
"draft": null,
"body_html": null,
"body_text": null,
"timeline_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/timeline",
"author_association": "MEMBER",
"user": {
"id": 17045339,
"login": "zcesur",
"avatar_url": "https://avatars.githubusercontent.com/u/17045339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zcesur",
"html_url": "https://github.com/zcesur",
"followers_url": "https://api.github.com/users/zcesur/followers",
"following_url": "https://api.github.com/users/zcesur/following{/other_user}",
"gists_url": "https://api.github.com/users/zcesur/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zcesur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zcesur/subscriptions",
"organizations_url": "https://api.github.com/users/zcesur/orgs",
"repos_url": "https://api.github.com/users/zcesur/repos",
"events_url": "https://api.github.com/users/zcesur/events{/privacy}",
"received_events_url": "https://api.github.com/users/zcesur/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"pull_request": null
}
},
"created_at": "2023-01-03T18:11:46.231Z",
"updated_at": "2023-01-03T18:12:23.232Z"
}
Delete a claim
Deletes a bounty claim.
Request
curl "https://console.algora.io/api/claims/clcgjrvlj0002s89bcufifygl" \
-X "DELETE" \
-H "authorization: Bearer $TOKEN" \
-H "content-Type: application/json"
Response
{
"id": "clcgjrvlj0002s89bcufifygl",
"status": "accepted",
"solver": {
"id": 118012453,
"login": "SKG2310",
"avatar_url": "https://avatars.githubusercontent.com/u/118012453?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/SKG2310",
"html_url": "https://github.com/SKG2310",
"followers_url": "https://api.github.com/users/SKG2310/followers",
"following_url": "https://api.github.com/users/SKG2310/following{/other_user}",
"gists_url": "https://api.github.com/users/SKG2310/gists{/gist_id}",
"starred_url": "https://api.github.com/users/SKG2310/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/SKG2310/subscriptions",
"organizations_url": "https://api.github.com/users/SKG2310/orgs",
"repos_url": "https://api.github.com/users/SKG2310/repos",
"events_url": "https://api.github.com/users/SKG2310/events{/privacy}",
"received_events_url": "https://api.github.com/users/SKG2310/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"bounty": {
"id": "clcg36as9000bs8swc544ee8c",
"forge": "github",
"repo_owner": "Uber4Coding",
"repo_name": "dev",
"number": 10,
"amount": 10000,
"currency": "USD",
"status": "active",
"created_at": "2023-01-03T10:27:05.626Z",
"updated_at": "2023-01-03T13:13:03.884Z",
"issue": {
"id": 1505117323,
"url": "https://api.github.com/repos/Uber4Coding/dev/issues/10",
"repository_url": "https://api.github.com/repos/Uber4Coding/dev",
"labels_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/labels{/name}",
"comments_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/comments",
"events_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/events",
"html_url": "https://github.com/Uber4Coding/dev/issues/10",
"number": 10,
"state": "open",
"state_reason": null,
"title": "Add connector X",
"body": null,
"locked": false,
"active_lock_reason": null,
"comments": 4,
"closed_at": null,
"created_at": "2022-12-20T19:09:40.000Z",
"updated_at": "2022-12-20T19:10:18.000Z",
"draft": null,
"body_html": null,
"body_text": null,
"timeline_url": "https://api.github.com/repos/Uber4Coding/dev/issues/10/timeline",
"author_association": "MEMBER",
"user": {
"id": 17045339,
"login": "zcesur",
"avatar_url": "https://avatars.githubusercontent.com/u/17045339?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/zcesur",
"html_url": "https://github.com/zcesur",
"followers_url": "https://api.github.com/users/zcesur/followers",
"following_url": "https://api.github.com/users/zcesur/following{/other_user}",
"gists_url": "https://api.github.com/users/zcesur/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zcesur/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zcesur/subscriptions",
"organizations_url": "https://api.github.com/users/zcesur/orgs",
"repos_url": "https://api.github.com/users/zcesur/repos",
"events_url": "https://api.github.com/users/zcesur/events{/privacy}",
"received_events_url": "https://api.github.com/users/zcesur/received_events",
"type": "User",
"site_admin": false,
"name": null,
"email": null
},
"pull_request": null
}
},
"created_at": "2023-01-03T18:11:46.231Z",
"updated_at": "2023-01-03T18:12:23.232Z"
}
Initiate payment
Creates a payment link for a claim.
Request
curl "https://console.algora.io/api/claims/clcg36as9000as8swwd5lmovp/payments" \
-H "authorization: Bearer $TOKEN" \
-H "content-Type: application/json" \
--data-raw '{"solver":"SKG2310"}'
Response
{
"url": "https://example.com"
}