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
- Skapa en nyckel nedan med rätt scopes.
- Kopiera
src/lib/hub-client.tstill andra projektet. - 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 nedanBas-URL:
https://fortnoxtify-bridge.lovable.appOpenAPI-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.jsonTillgängliga endpoints
GET
/api/v1/fortnox/invoicesfortnox:invoices:readPOST
/api/v1/fortnox/invoicesfortnox:invoices:writeGET
/api/v1/fortnox/invoices/:idfortnox:invoices:readGET
/api/v1/fortnox/invoices/:id/statusfortnox:invoices:readGET
/api/v1/shopify/orders/:idshopify:orders:readPOST
/api/v1/shopify/orders/:id/fulfillshopify:orders:fulfillPOST
/api/v1/customer/logincustomer:authPOST
/api/v1/customer/logoutcustomer:authPOST
/api/v1/customer/recovercustomer:authGET
/api/v1/customer/mecustomer:readPATCH
/api/v1/customer/mecustomer:writeGET
/api/v1/customer/orderscustomer:orders:readGET
/api/v1/customer/orders/:idcustomer:orders:readGET
/api/v1/customer/addressescustomer:addresses:readPOST
/api/v1/customer/addressescustomer:addresses:writePATCH
/api/v1/customer/addresses/:idcustomer:addresses:writeDELETE
/api/v1/customer/addresses/:idcustomer:addresses:writeGET
/api/v1/customer/invoicescustomer:invoices:readGET
/api/v1/availabilityavailability:readGET
/api/v1/worldticket/passengersworldticket:passengers:readGET
/api/v1/worldticket/bookingworldticket:booking:readPOST
/api/v1/worldticket/ssrworldticket:ssr:write (+ booking:read)POST
/api/v1/worldticket/booking/refundworldticket:booking:refundPOST
/api/v1/sms/sendsms:sendGET
/api/v1/irr/messagesirr:messages:readPOST
/api/v1/irr/messagesirr:messages:readKund-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.