Brommaflyg
Sync Bridge

API-nycklar

Inställningar · operativ kontroll

API-nycklar (Hub)

Andra projekt anropar /api/v1 via dessa nycklar. Scopes styr vad varje nyckel får göra.

Anslut från ett annat projekt

  1. Skapa en nyckel nedan med rätt scopes.
  2. Kopiera src/lib/hub-client.ts till andra projektet.
  3. Sätt två secrets i andra projektet och anropa Hub.
HUB_BASE_URL=https://fortnoxtify-bridge.lovable.app
HUB_API_KEY=lvh_live_…   # nyckeln du skapade nedan
Bas-URL:https://fortnoxtify-bridge.lovable.app

OpenAPI-spec

Klistra in URL:en i Lovable/Postman/Swagger så får projektet alla endpoints, scopes och scheman automatiskt.

https://fortnoxtify-bridge.lovable.app/api/v1/openapi.json

Tillgängliga endpoints

GET
/api/v1/fortnox/invoicesfortnox:invoices:read
POST
/api/v1/fortnox/invoicesfortnox:invoices:write
GET
/api/v1/fortnox/invoices/:idfortnox:invoices:read
GET
/api/v1/fortnox/invoices/:id/statusfortnox:invoices:read
GET
/api/v1/shopify/orders/:idshopify:orders:read
POST
/api/v1/shopify/orders/:id/fulfillshopify:orders:fulfill
POST
/api/v1/customer/logincustomer:auth
POST
/api/v1/customer/logoutcustomer:auth
POST
/api/v1/customer/recovercustomer:auth
GET
/api/v1/customer/mecustomer:read
PATCH
/api/v1/customer/mecustomer:write
GET
/api/v1/customer/orderscustomer:orders:read
GET
/api/v1/customer/orders/:idcustomer:orders:read
GET
/api/v1/customer/addressescustomer:addresses:read
POST
/api/v1/customer/addressescustomer:addresses:write
PATCH
/api/v1/customer/addresses/:idcustomer:addresses:write
DELETE
/api/v1/customer/addresses/:idcustomer:addresses:write
GET
/api/v1/customer/invoicescustomer:invoices:read
GET
/api/v1/availabilityavailability:read
GET
/api/v1/worldticket/passengersworldticket:passengers:read
GET
/api/v1/worldticket/bookingworldticket:booking:read
POST
/api/v1/worldticket/ssrworldticket:ssr:write (+ booking:read)
POST
/api/v1/worldticket/booking/refundworldticket:booking:refund
POST
/api/v1/sms/sendsms:send
GET
/api/v1/irr/messagesirr:messages:read
POST
/api/v1/irr/messagesirr:messages:read

Kund-endpoints kräver både API-nyckel (Authorization: Bearer lvh_live_…) och kundsession (X-Customer-Session: cs_live_… som returneras av /customer/login).

Skapa ny nyckel

Shopify
Fortnox
Kundportal
Flygtillgänglighet
World Ticket
SMS (ClickSend)
Lovable internt
Ange namn. Välj minst ett scope.

Befintliga nycklar

Inga nycklar än.

Senaste API-anrop

Inga anrop ännu.