Sources

Sources endpoints of the bizSupply API.

Last updated: 2026-07-21

GET /api/v1/sources

List source connections for the authenticated tenant.

Parameters

NameInRequiredDescription
statusquerynoFilter by connection status.
providerquerynoFilter by provider type.
pageablequeryyes

Responses

StatusDescription
200Paginated list of source connections
401Authentication required

POST /api/v1/sources/connect/initiate

Initiate an OAuth connection flow for a source provider.

Returns a CSRF-protected authorization URL. The client must redirect the user's browser to that URL.

Request body

  • application/jsonInitiateConnectionRequest

Responses

StatusDescription
200Authorization URL and state
400Unsupported provider
401Authentication required

POST /api/v1/sources/connect/manual-upload

Responses

StatusDescription
200OK

GET /api/v1/sources/coverage

Parameters

NameInRequiredDescription
Authorizationheaderno

Responses

StatusDescription
200OK

POST /api/v1/sources/custom

Create a custom (non-OAuth) source connection (OWNER or ADMIN only).

Used for partner plugin integrations authenticating via API keys or other credential types. Credentials are stored securely in vault.

Request body

  • application/jsonCreateCustomSourceRequest

Responses

StatusDescription
201Custom source connection created
400Invalid request body
403Insufficient role

GET /api/v1/sources/email-forwarding/address

Responses

StatusDescription
200OK

GET /api/v1/sources/email-forwarding/allowlist

Parameters

NameInRequiredDescription
Authorizationheaderno

Responses

StatusDescription
200OK

POST /api/v1/sources/email-forwarding/allowlist

Parameters

NameInRequiredDescription
Authorizationheaderno

Request body

  • application/jsonstring (byte)

Responses

StatusDescription
200OK

PATCH /api/v1/sources/email-forwarding/allowlist/{entryId}

Parameters

NameInRequiredDescription
entryIdpathyes
Authorizationheaderno

Request body

  • application/jsonstring (byte)

Responses

StatusDescription
200OK

DELETE /api/v1/sources/email-forwarding/allowlist/{entryId}

Parameters

NameInRequiredDescription
entryIdpathyes
Authorizationheaderno

Responses

StatusDescription
200OK

GET /api/v1/sources/email-forwarding/audit

Parameters

NameInRequiredDescription
Authorizationheaderno

Responses

StatusDescription
200OK

GET /api/v1/sources/providers

List available source providers.

Public endpoint — no authentication required. Returns enabled providers for UI display.

Responses

StatusDescription
200List of enabled source providers

GET /api/v1/sources/{id}

Get details of a specific source connection.

Parameters

NameInRequiredDescription
idpathyesSource connection UUID.

Responses

StatusDescription
200Source connection details
404Connection not found or not in tenant

DELETE /api/v1/sources/{id}

Disconnect and delete a source connection (OWNER or ADMIN only).

Deletes OAuth credentials from vault and notifies the backend service.

Parameters

NameInRequiredDescription
idpathyesSource connection UUID.

Responses

StatusDescription
204Connection deleted
403Insufficient role
404Connection not found

POST /api/v1/sources/{id}/reconnect

Initiate reauthorization for a source requiring reconnection.

Used when a source enters REQUIRES_REAUTHORIZATION status. Starts a new OAuth flow for the same provider.

Parameters

NameInRequiredDescription
idpathyesSource connection UUID.

Responses

StatusDescription
200New authorization URL and state
400Source is not in REQUIRES_REAUTHORIZATION status
404Source connection not found

PATCH /api/v1/sources/{sourceId}

Parameters

NameInRequiredDescription
sourceIdpathyes
Authorizationheaderno

Request body

  • application/jsonstring (byte)

Responses

StatusDescription
200OK

GET /api/v1/sources/{sourceId}/activity

Parameters

NameInRequiredDescription
sourceIdpathyes
Authorizationheaderno

Responses

StatusDescription
200OK

GET /api/v1/sources/{sourceId}/auto-sync

Parameters

NameInRequiredDescription
sourceIdpathyes
Authorizationheaderno

Responses

StatusDescription
200OK

PATCH /api/v1/sources/{sourceId}/auto-sync

Parameters

NameInRequiredDescription
sourceIdpathyes
Authorizationheaderno

Request body

  • application/jsonstring (byte)

Responses

StatusDescription
200OK

GET /api/v1/sources/{sourceId}/coverage

Parameters

NameInRequiredDescription
sourceIdpathyes
Authorizationheaderno

Responses

StatusDescription
200OK

GET /api/v1/sources/{sourceId}/folders

Parameters

NameInRequiredDescription
sourceIdpathyes
Authorizationheaderno

Responses

StatusDescription
200OK

GET /api/v1/sources/{sourceId}/state

Parameters

NameInRequiredDescription
sourceIdpathyes
Authorizationheaderno

Responses

StatusDescription
200OK