Developer

Lida keys

Signature, parameters, an example call and the sample response for every method in this group, generated from the contract.

Legacy: for a system that still asks for a key that starts with lida_. Use an API key with the Lida tasks permission instead.

lid.lida.listKeys

Legacy: the Lida keys of the key's account: name, last 4, dates, this month's credits and, if an API key created it, createdBy and works (false while that key is expired). It never returns the key. They are the same keys the person sees at lid.pro; with dollar billing, chargedCentsThisMonth: what its tasks were charged this month, in cents, from the account's extra usage

Key permission: none (read)

Legacy: it still works the same. Use an API key with the Lida tasks permission instead.

lid.lida.listKeys(input?, options?)

SDK
const result = await lid.lida.listKeys();

Hand-written sample (not captured on devnet yet)

Response
{
  "items": [
    {
      "id": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
      "name": "ERP de FP",
      "last4": "9xQ2",
      "createdAt": "2026-11-02T15:00:00Z",
      "lastUsedAt": "2026-11-02T16:10:00Z",
      "creditsThisMonth": 12,
      "chargedCentsThisMonth": 0
    }
  ]
}

lid.lida.createKey

Legacy: creates a Lida key with a name (1 to 60 characters), for a system that still asks for a key that starts with lida_. The full key is returned only in this response and shows up at lid.pro right away; its tasks spend the account's credits (with dollar billing, its extra usage). With 5 keys it returns 409 lida_key_limit. If the API key that created it is removed or regenerated, this one is removed too; while that key is expired, this one answers 401 lida_key_invalid

Key permission: sitio (site)

Legacy: it still works the same. Use an API key with the Lida tasks permission instead.

lid.lida.createKey(input, options?)

NameTypeRequiredSource
namestringRequiredbody
SDK
const result = await lid.lida.createKey({
  name: '…',
});

Hand-written sample (not captured on devnet yet)

Response
{
  "id": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
  "name": "ERP de FP",
  "last4": "9xQ2",
  "createdAt": "2026-11-02T15:00:00Z",
  "key": "lida_EjemploNoUsable0000000000000000009xQ2"
}

lid.lida.revokeKey

Legacy: removes a Lida key right away: the next task with it returns 401 lida_key_invalid (404 lida_key_not_found if it is not the account's)

Key permission: sitio (site)

Legacy: it still works the same. Use an API key with the Lida tasks permission instead.

lid.lida.revokeKey(input, options?)

NameTypeRequiredSource
idstringRequiredpath
SDK
const result = await lid.lida.revokeKey({
  id: '…',
});

Hand-written sample (not captured on devnet yet)

Response
{
  "ok": true,
  "id": "7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f"
}