Skip to content

List pending challenges

GET
/bot/challenges
curl --request GET \
--url https://play-api.jc.id.lv/bot/challenges \
--header 'Authorization: Bearer <token>'

Every pending challenge involving the caller — in addressed to you, out yours.

Pending challenges.

Media typeapplication/json
object
in
required
Array<object>
object
id
required
string
challenger
required
One of:

A participant’s identity as a single-key wrapper.

object
Guest
required
object
id
string
target
required
One of:

A participant’s identity as a single-key wrapper.

object
Guest
required
object
id
string
timeControl
required
One of:

A single-key time-control wrapper.

object
Unlimited
required
object
targetOnline

Advisory — whether the target holds an account stream.

boolean
out
required
Array<object>
object
id
required
string
challenger
required
One of:

A participant’s identity as a single-key wrapper.

object
Guest
required
object
id
string
target
required
One of:

A participant’s identity as a single-key wrapper.

object
Guest
required
object
id
string
timeControl
required
One of:

A single-key time-control wrapper.

object
Unlimited
required
object
targetOnline

Advisory — whether the target holds an account stream.

boolean
Examplegenerated
{
"in": [
{
"id": "example",
"challenger": {
"Guest": {
"id": "example"
}
},
"target": {
"Guest": {
"id": "example"
}
},
"timeControl": {
"Unlimited": {}
},
"targetOnline": true
}
],
"out": [
{
"id": "example",
"challenger": {
"Guest": {
"id": "example"
}
},
"target": {
"Guest": {
"id": "example"
}
},
"timeControl": {
"Unlimited": {}
},
"targetOnline": true
}
]
}