Skip to content

List KSeF connections without exposing credentials (ADMIN+)

GET
/ksef-connections
curl --request GET \
--url https://api.invogi.com/v1/ksef-connections \
--header 'Authorization: Bearer <token>'
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.

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
Allowed values: TEST DEMO PRODUCTION
contextNipMasked
required
string
/^\*{6}[0-9]{4}$/
status
required
string
Allowed values: PENDING CONNECTED ERROR DISABLED
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
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}