List KSeF connections without exposing credentials (ADMIN+)
GET
/ksef-connections
const url = 'https://api.invogi.com/v1/ksef-connections';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.invogi.com/v1/ksef-connections \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Responses
Section titled “Responses”KSeF connections
Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
companyId
required
string format: uuid
companyName
string
environment
required
string
contextNipMasked
required
string
status
required
string
lastTestedAt
required
string | null format: date-time
lastErrorMessage
required
string | null
createdAt
required
string format: date-time
integrations_enabled
required
False on the free tier (no active subscription); saving
boolean
Example
{ "items": [ { "environment": "TEST", "status": "PENDING" } ]}Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json