Skip to main content
POST
/
v1
/
models
/
messagepart
/
{id}
/
claim
Claim messagepart
curl --request POST \
  --url https://api.abloatai.com/v1/models/messagepart/{id}/claim \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "<string>",
  "ttl": "<string>",
  "queue": true
}
'
{
  "id": "<string>",
  "actor": "<string>",
  "action": "<string>",
  "field": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "target": {
    "resource": "<string>",
    "id": "<string>",
    "path": "<string>",
    "field": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key (sk_live_…) or a scoped capability token. The same header carries both — the server discriminates by token shape.

Path Parameters

id
string
required

Record id.

Body

application/json
action
string

What you intend to do (default "edit").

ttl

Lease lifetime, e.g. "30s" or milliseconds.

queue
boolean

Join the FIFO wait queue instead of failing when held.

Response

Claim acquired.

id
string
actor
string
participantKind
enum<string>
Available options:
user,
agent,
system
action
string
field
string
expiresAt
string<date-time>
target
object