Skip to content

Documentation

List saved Library items

GET/v1/presetsLibrary

Example request

curl -s "https://snip.link/v1/presets" \
  -H "Authorization: Bearer $SNIP_KEY"

Example response

{
  "presets": [
    {
      "kind": "rules"
    }
  ]
}

Response fields

FieldTypeDescription
presetsLibraryItem[]
presets[].idstring
presets[].kindrules | qr | campaign | preview | template
presets[].namestring
presets[].descriptionstring
presets[].configobject
presets[].versioninteger
presets[].is_defaultboolean
presets[].created_atstring
presets[].updated_atstring
accountobject
account.idstring
account.labelstring
limitinteger
planobject
plan.idstring
plan.namestring
plan.price_centsnumber
permissionsobject
permissions.editboolean
permissions.defaultsboolean
permissions.billingboolean
upgradeobject, null
upgrade.kindstring
upgrade.planstring
upgrade.plan_namestring
upgrade.hrefstring

Errors

StatusMeaning
400The body or query is invalid. details names each field.
401The API key is missing, malformed or revoked.
403This account role cannot perform the action. details.reason identifies the permission refusal.
404No Library item or selected link in the authenticated account.
409The item or a selected link changed. Read it again and preview before retrying.
413The input is larger than the plan allows per run. details carries the size, the limit and the unit.
429Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason).
503The feature is switched off for the service right now. Try again later.

Back to getting started