Post a lobby seek
POST
/bot/seeks
const url = 'https://play-api.jc.id.lv/bot/seeks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"timeControl":{"Unlimited":{}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://play-api.jc.id.lv/bot/seeks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "timeControl": { "Unlimited": {} } }'A standing public offer in the same lobby guests use. Anyone may accept it.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
timeControl
One of:
A single-key time-control wrapper.
object
Unlimited
required
object
A single-key time-control wrapper.
object
SuddenDeath
required
object
initialSeconds
required
integer
A single-key time-control wrapper.
object
Fischer
required
object
initialSeconds
required
integer
incrementSeconds
required
integer
A single-key time-control wrapper.
object
PerMove
required
object
secondsPerMove
required
integer
Examplegenerated
{ "timeControl": { "Unlimited": {} }}Responses
Section titled “Responses”Seek posted. Hold it by polling; it expires after ~2 minutes without a poll.
Media typeapplication/json
object
seekId
required
string
secret
required
Capability secret for poll/cancel.
string
Examplegenerated
{ "seekId": "example", "secret": "example"}Too many open seeks (cap 3).