C19T Connect API (v1)
Download OpenAPI specification:Download
This API can currently be only used by apps. In order to create your own app, please contact our support.
You must authenticate using the OAuth2.0 Client-Credentials flow. You can find there OIDC Discovery Document here.
If you want to interact on an organization, please provide organizationID:appID as client_id in order to login for the correct organization/tenant. The client_secret is your apps secret (also used to sign webhooks).
Create certificate code
Create new, custom certificate codes that can be used for cert executions
Authorizations:
Request Body schema: application/json
| certCodes required | Array of strings non-empty Cetificate codes that can be used for cert executions. |
Responses
Request samples
- Payload
{- "certCodes": [
- "string"
]
}Response samples
- 201
{- "certCodes": [
- "string"
]
}Submit single cert result
Submit a result for a single certificate
Authorizations:
path Parameters
| certCode required | string |
Request Body schema: application/json
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" |
| metafields | any or null Add custom metafields that can be used in the certificate report. |
object (OverwriteTestDto) |
Responses
Request samples
- Payload
{- "result": "unknown",
- "metafields": {
- "id": "1"
}, - "overwriteCert": {
- "manufacturer": "unknown",
- "material": "unknown",
- "type": "unknown"
}
}Response samples
- 201
- 409
{- "certCode": "ANY_CERT_CODE",
- "result": "unknown"
}Submit intermediate certificate state
Submit intermediate state of a certificate
Authorizations:
path Parameters
| certCode required | string |
Request Body schema: application/json
| customMessage | string or null Custom message from connector |
Responses
Request samples
- Payload
{- "customMessage": "string"
}Response samples
- 201
- 409
{- "certCode": "ANY_CERT_CODE",
- "result": "unknown"
}Upload pdf report
Upload the report in PDF form. This report can later be downloaded in the admin area
Authorizations:
path Parameters
| certCode required | string |
Request Body schema: multipart/form-data
| ContentType | string |
| ContentDisposition | string |
object | |
| Length | integer <int64> |
| Name | string |
| FileName | string |
Responses
Response samples
- 201
- 409
{- "url": "string"
}Create test code
Create new, custom test codes that can be used for test executions or as test pool header.
Authorizations:
Request Body schema: application/json
| testCodes required | Array of strings non-empty Test codes that can be used for test executions or as test pool header. |
Responses
Request samples
- Payload
{- "testCodes": [
- "string"
]
}Response samples
- 201
{- "testCodes": [
- "string"
]
}Submit single test result
Submit a result for a single test (Antigen rapid test, RT-PCR, etc.)
Authorizations:
path Parameters
| testCode required | string Header code that identifies the pool. |
Request Body schema: application/json
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" |
| suppressCustomerNotification | boolean or null Set this property when notifications to the customer should be suppressed. |
| suppressHealthauthorityNotification | boolean or null Set this property when report to the health authority should be suppressed. |
| metafields | any or null Add custom metafields that can be used in the test report. |
object (OverwriteTestDto) |
Responses
Request samples
- Payload
{- "result": "unknown",
- "suppressCustomerNotification": false,
- "suppressHealthauthorityNotification": false,
- "metafields": {
- "cycleTreshold": "42"
}, - "overwriteTest": {
- "manufacturer": "unknown",
- "material": "unknown",
- "type": "unknown"
}
}Response samples
- 201
- 409
{- "testCode": "C19AAP01-ABCD1234-56EF-G7-H8I9",
- "result": "unknown"
}Submit intermediate test state
Submit intermediate state of a single test (e.g. laboratory started processing PCR test, pool has to be split up due to a positive pool result, etc.
Authorizations:
path Parameters
| testCode required | string Code of the test. |
Request Body schema: application/json
| suppressCustomerNotification | boolean or null Set this property when notifications to the customer should be suppressed. |
| customMessage | string or null Custom message from lab |
Responses
Request samples
- Payload
{- "suppressCustomerNotification": false,
- "customMessage": "string"
}Response samples
- 201
- 409
{- "testCode": "C19AAP01-ABCD1234-56EF-G7-H8I9",
- "result": "unknown"
}Upload dcc
Upload the digital covid certificate in PDF form. This dcc can later be downloaded in the admin area of the C19T tool or be sent to the customer.
Authorizations:
path Parameters
| testCode required | string The code of the test |
Request Body schema: multipart/form-data
| ContentType | string |
| ContentDisposition | string |
object | |
| Length | integer <int64> |
| Name | string |
| FileName | string |
Responses
Response samples
- 409
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Upload pdf report
Upload the laboratory report in PDF form. This report can later be downloaded in the admin area of the C19T tool or be sent to the customer.
Authorizations:
path Parameters
| testCode required | string The code of the test |
Request Body schema: multipart/form-data
| ContentType | string |
| ContentDisposition | string |
object | |
| Length | integer <int64> |
| Name | string |
| FileName | string |
Responses
Response samples
- 201
- 409
{- "url": "string"
}Get organization information for a test.
Get organization information for single test
Authorizations:
path Parameters
| testCode required | string Code of the test. |
Responses
Response samples
- 201
- 409
{- "id": "string",
- "name": "string",
- "contactEmail": "string",
- "contactPhone": "string"
}Create new pool
Create a new test pool. You are required to have you app installed in all organizations that own the test. Further, every test has to be checked in.
Authorizations:
Request Body schema: application/json
| poolHeader required | string Header code that identifies the pool. |
| externalReference | string or null Reference to the pool in the laboratory system. |
| testCodes required | Array of strings non-empty List of test-codes in the pool. |
Responses
Request samples
- Payload
{- "poolHeader": "string",
- "externalReference": "string",
- "testCodes": [
- "string"
]
}Response samples
- 201
- 409
- 422
{- "poolHeader": "string",
- "result": "unknown",
- "testCodes": {
- "property1": {
- "state": "ok",
- "warning": {
- "code": "unknown",
- "message": "string"
}, - "error": {
- "code": "unknown",
- "message": "string"
}
}, - "property2": {
- "state": "ok",
- "warning": {
- "code": "unknown",
- "message": "string"
}, - "error": {
- "code": "unknown",
- "message": "string"
}
}
}
}Submit pool result
When submitting a negative result all tests are set to negative. When submitting a positive result, only the pool is set to positive but customers and health authorities are not informed.
Authorizations:
path Parameters
| poolHeader required | string Header code that identifies the pool. |
Request Body schema: application/json
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" |
| suppressCustomerNotification | boolean or null Set this property when notifications to the customers should be suppressed. |
| suppressHealthauthorityNotification | boolean or null Set this property when reports to the health authorities should be suppressed. |
Responses
Request samples
- Payload
{- "result": "unknown",
- "suppressCustomerNotification": true,
- "suppressHealthauthorityNotification": true
}Response samples
- 201
- 409
{- "poolHeader": "string",
- "result": "unknown",
- "testCodes": {
- "property1": {
- "state": "ok",
- "warning": {
- "code": "unknown",
- "message": "string"
}, - "error": {
- "code": "unknown",
- "message": "string"
}
}, - "property2": {
- "state": "ok",
- "warning": {
- "code": "unknown",
- "message": "string"
}, - "error": {
- "code": "unknown",
- "message": "string"
}
}
}
}