Cliquéalo for developers

Authentication and permissions

How to send your API key, what each permission allows, and what each access error means.

Every request carries one of your dealership's API keys. The key only sees and changes your dealership's data: there's no parameter to pick another one.

Sending the key

Use either of these:

x-cliquealo-api-key: clq_v1_…
Authorization: Bearer clq_v1_…

Permissions

You choose a key's permissions when you create it. A route without its permission responds 403.

PermissionWhat it allowsRoutes
inventario:leerRead your published carsGET /inventario, GET /inventario/{slug}
inventario:escribirAdd, change, and archive carsPOST /inventario, PUT and DELETE /inventario/{slug}
catalogo:leerRead the catalogGET /catalogo/*
cotizaciones:crearSee your loan products and quoteGET /cotizaciones/productos, POST /cotizaciones
plataformas:reportarReport and look up other platformsGET and POST /inventario/{slug}/publicaciones

You see which permissions your plan includes and how many keys you can have in the console, under «Uso» ("Usage").

Access errors

StatuscodigoWhat happenedWhat to do
401sin_credencialNo key arrivedSend one of the two headers
401credencial_invalidaThe key doesn't exist, was revoked, or the dealership isn't activeCreate another one in the console
403permiso_faltanteThe key lacks the route's permission; scope says whichCreate a key with that permission
403scope_no_incluidoYour plan doesn't include that permissionChange plans
403sin_agenciaThe route needs a dealership keyUse a key created in the console
503no_disponibleThe API is briefly unavailableRetry in a few minutes

Taking care of your key

  • Use it only from your server. If it reaches someone's browser, anyone can read or change your inventory.
  • If you suspect someone else has it, revoke it in the console: it stops working on the next request.
  • Use a different key for each system, with only the permissions it needs, so you can revoke one without affecting the rest.