Co2 Backend (2023-11-03)
Download OpenAPI specification:Download
Public API for keyper's co2 pocket.
Testsystem
Please use https://api.dev.co2p.com/v1 for the test system and as JWT audience.
Create a new account
Request Body schema: application/json
| name required | string |
| language | string or null |
string or null | |
| phone | string or null |
object (CreateIdentityDto) | |
object (CreateIdentityDto) |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "language": "string",
- "email": "string",
- "phone": "string",
- "initialIdentity": {
- "type": "Undefined",
- "identity": "string",
- "key": "string"
}, - "otherIdentity": {
- "type": "Undefined",
- "identity": "string",
- "key": "string"
}
}Response samples
- 201
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified"
}Response samples
- 200
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified"
}Update account's profile
Request Body schema: application/json
| name | string or null |
string or null | |
| phone | string or null |
| language | string or null |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string"
}Response samples
- 201
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified"
}Add a new notification subscription for an account
Request Body schema:
| endpoint required | string <email> |
| topics required | Array of strings (AccountNotificationTopicEnum) non-empty Items Value: "test_not_checked_in" |
Responses
Request samples
- Payload
Content type
{- "endpoint": "user@example.com",
- "topics": [
- "test_not_checked_in"
]
}Response samples
- 201
- 409
Content type
application/json
{- "subscriptionArn": "string",
- "endpoint": "string",
- "topics": [
- "test_not_checked_in"
]
}Update an existing notification subscription for an account
Request Body schema:
| subscriptionArn required | string |
| topics required | Array of strings (AccountNotificationTopicEnum) non-empty Items Value: "test_not_checked_in" |
Responses
Request samples
- Payload
Content type
{- "subscriptionArn": "string",
- "topics": [
- "test_not_checked_in"
]
}Response samples
- 200
- 409
Content type
application/json
{- "subscriptionArn": "string",
- "endpoint": "string",
- "topics": [
- "test_not_checked_in"
]
}Delete an existing notification subscription for an account
Request Body schema:
| subscriptionArn required | string |
Responses
Request samples
- Payload
Content type
{- "subscriptionArn": "string"
}Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Verify an account
Request Body schema: application/json
| level required | string (AccountVerificationLevelEnum) Enum: "unverified" "person" |
object (FieldsDto) |
Responses
Request samples
- Payload
Content type
application/json
{- "level": "unverified",
- "fields": {
- "firstName": "string",
- "lastName": "string"
}
}Response samples
- 200
- 409
Content type
application/json
{- "currentLevel": "unverified",
- "levels": [
- {
- "level": "unverified",
- "timestamp": "2019-08-24T14:15:22Z"
}
]
}Register a co2 project
Request Body schema:
| name required | string |
| type required | string |
| startDate required | string <date-time> |
required | object (LocationDto) |
| updates required | string |
| organizationReference required | string |
object or null |
Responses
Request samples
- Payload
Content type
{- "name": "string",
- "type": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "updates": "string",
- "organizationReference": "string",
- "metafields": {
- "property1": null,
- "property2": null
}
}Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Generate a co2 certificate
Request Body schema:
| createdAt required | string <date-time> |
| certifiedBy | string or null |
| co2e required | number <double> |
required | object (TimePeriodDto) |
| projectID required | string |
object or null |
Responses
Request samples
- Payload
Content type
{- "createdAt": "2019-08-24T14:15:22Z",
- "certifiedBy": "string",
- "co2e": 0,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "projectID": "string",
- "metafields": {
- "property1": null,
- "property2": null
}
}Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Upload pdf document
path Parameters
| type required | string (DocumentTypeEnum) Enum: "organization" "project" "certificate" "model" |
query Parameters
| reference | string |
Request Body schema: multipart/form-data
| ContentType | string |
| ContentDisposition | string |
object | |
| Length | integer <int64> |
| Name | string |
| FileName | string |
Responses
Response samples
- 200
- 409
Content type
application/json
[- {
- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}
]Response samples
- 200
- 409
Content type
application/json
[- {
- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}
]Response samples
- 200
- 409
Content type
application/json
{- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}Response samples
- 200
- 409
Content type
application/json
{- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}Response samples
- 200
- 409
Content type
application/json
{- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}Response samples
- 200
- 409
Content type
application/json
{- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}Save result
path Parameters
| testCode required | string |
Request Body schema: application/json
| testCode required | string |
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| metafields | any or null |
Responses
Request samples
- Payload
Content type
application/json
{- "testCode": "string",
- "result": "unknown",
- "metafields": null
}Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Response samples
- 200
- 409
Content type
application/json
{- "test_code": "string",
- "test_type": "unknown",
- "test": {
- "type": "unknown",
- "manufacturer": "unknown",
- "material": "unknown"
}, - "created_at": "2019-08-24T14:15:22Z",
- "state": "not_started",
- "result": "unknown",
- "external_reference": "string",
- "flags": {
- "suppress_customer_notification": {
- "show": true,
- "checked": true
}, - "suppress_health_authority_notification": {
- "show": true,
- "checked": true
}
}, - "result_options": [
- "unknown"
], - "projectName": "string",
- "projectType": "string",
- "certificateInfo": {
- "certifiedBy": "string",
- "co2E": 0,
- "timePeriod": {
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "projectInfo": {
- "organizationReference": "string",
- "name": "string",
- "operator": "string",
- "type": "string",
- "certifiedBy": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "updates": "string",
- "address": {
- "street": "string",
- "city": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "metafields": {
- "property1": null,
- "property2": null
}
}, - "organizationInfo": {
- "name": "string",
- "uid": "string",
- "phone": "string",
- "mail": "string"
}
}Import data
query Parameters
| Language | string |
| ProjectReference | string |
Request Body schema: multipart/form-data
| ContentType | string |
| ContentDisposition | string |
object | |
| Length | integer <int64> |
| Name | string |
| FileName | string |
Responses
Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Response samples
- 200
- 409
Content type
application/json
{- "groupName": "unknown",
- "backgroundColor": "string",
- "mainColor": "string",
- "mainDarkColor": "string",
- "mainLightColor": "string",
- "mainLightest": "string",
- "orangeColor": "string",
- "orangeBackground": "string",
- "textColor": "string",
- "textOrange": "string",
- "linkedText": "string",
- "textMidColor": "string",
- "logoUrl": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z"
}Get an organizations events
Events are logged whenever something interesting happens in the system for the organization (e.g. test checkin, result entered, etc.)
query Parameters
| limit | integer <int32> [ 1 .. 50 ] |
| starting_after | string |
| starting_at | string |
| topic | string |
Responses
Response samples
- 200
- 409
Content type
application/json
{- "events": [
- {
- "event_id": "string",
- "topic": "string",
- "api_version": "string",
- "payload": null,
- "created_at": "2019-08-24T14:15:22Z",
- "account": {
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string"
}
}
], - "next_event_id": "string"
}Response samples
- 200
- 409
Content type
application/json
{- "events": [
- {
- "event_id": "string",
- "topic": "string",
- "api_version": "string",
- "payload": null,
- "created_at": "2019-08-24T14:15:22Z",
- "account": {
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string"
}
}
], - "next_event_id": "string"
}Login an account by an identity
Request Body schema:
| type | string (IdentityType) Enum: "Undefined" "IDCard" "UsernamePassword" "Microsoft" "ApiKey" "Keycloak" |
| identity | string or null |
| key | string or null |
Responses
Request samples
- Payload
Content type
{- "type": "Undefined",
- "identity": "string",
- "key": "string"
}Login the default app account for an organization
Request Body schema:
| appId required | string |
| organizationId required | string |
| secretKey required | string |
| scope required | string |
Responses
Request samples
- Payload
Content type
{- "appId": "string",
- "organizationId": "string",
- "secretKey": "string",
- "scope": "string"
}Response samples
- 401
Content type
No sample
Create a new app
Request Body schema:
| name required | string |
| apiVersion required | string |
| iconUrl | string or null |
| scopes required | Array of strings (AppScopeEnum) Items Enum: "test.read" "test.write" "pii.read" "test-execution.read" "test-execution.write" "organization.read" "organization.write" "booking.read" "booking.write" "test.pool.manage" "test.result.write" |
Responses
Request samples
- Payload
Content type
{- "name": "string",
- "apiVersion": "string",
- "iconUrl": "string",
- "scopes": [
- "test.read"
]
}/organization
Request Body schema:
| name required | string |
| keyperApiKey required | string |
| timezone required | string |
| groupName required | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" |
| gln | string or null |
| contactPhone | string or null |
| contactEmail | string or null |
| website | string or null <uri> |
| mainColor | string or null |
object (SaveOrganizationAddressDto) | |
| requiredVerificationLevel | string (AccountVerificationLevelEnum) Enum: "unverified" "person" |
object (SaveOrganizationFeatureDto) |
Responses
Request samples
- Payload
Content type
{- "name": "string",
- "keyperApiKey": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}/organization/{organizationID}
path Parameters
| organizationID required | string |
Request Body schema:
| name required | string |
| timezone required | string |
| gln | string or null |
| contactPhone | string or null |
| contactEmail | string or null |
| website | string or null |
| mainColor | string or null |
object (SaveOrganizationAddressDto) | |
| requiredVerificationLevel | string (AccountVerificationLevelEnum) Enum: "unverified" "person" |
object (SaveOrganizationFeatureDto) |
Responses
Request samples
- Payload
Content type
{- "name": "string",
- "timezone": "string",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}/organization/{organizationID}/communication-options
path Parameters
| organizationID required | string |
Request Body schema:
required | Array of objects (SaveCommunicationOptionDto) | ||||||
Array
| |||||||
Responses
Request samples
- Payload
Content type
{- "options": [
- {
- "id": "email",
- "disabled": true,
- "selected": true
}
]
}Get all accounts that are linked to the organization.
path Parameters
| organizationID required | string |
query Parameters
| search | string |
| role | Array of strings |
| communicationChannel | Array of strings (CommunicationChannelTypeEnum) Items Enum: "phone" "email" |
| offset | integer <int32> |
| limit | integer <int32> |
Responses
Response samples
- 200
- 409
Content type
application/json
{- "accounts": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}
], - "totalNumber": 0
}Create a new account and link in to the organization.
path Parameters
| organizationID required | string |
Request Body schema:
| name required | string |
| language | string or null |
string or null | |
| phone | string or null |
object (CreateIdentityDto) | |
object (CreateIdentityDto) | |
| roles required | Array of strings (RoleEnum) Items Enum: "test.checkin.write" "test.result.write" "organization.manage" "cfp.read" "apps.read" "apps.manage" "vaccination.checkin.write" "organization.test.manage" "support" "security.token.exchange" "test.label.generate" "organization.write" "roles.unspecified" |
| additionalOrganizations | Array of strings or null |
Responses
Request samples
- Payload
Content type
{- "name": "string",
- "language": "string",
- "email": "string",
- "phone": "string",
- "initialIdentity": {
- "type": "Undefined",
- "identity": "string",
- "key": "string"
}, - "otherIdentity": {
- "type": "Undefined",
- "identity": "string",
- "key": "string"
}, - "roles": [
- "test.checkin.write"
], - "additionalOrganizations": [
- "string"
]
}Response samples
- 201
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Get a single linked accounts data.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Responses
Response samples
- 200
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Remove an account from an organization. The account will NOT be deleted!
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Responses
Response samples
- 204
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Link an existing account to an organization.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Request Body schema:
| roles | Array of strings or null (RoleEnum) Enum: "test.checkin.write" "test.result.write" "organization.manage" "cfp.read" "apps.read" "apps.manage" "vaccination.checkin.write" "organization.test.manage" "support" "security.token.exchange" "test.label.generate" "organization.write" "roles.unspecified" |
Responses
Request samples
- Payload
Content type
{- "roles": [
- "test.checkin.write"
]
}Response samples
- 201
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Update an accounts roles in the organization.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Request Body schema:
| roles | Array of strings or null (RoleEnum) Enum: "test.checkin.write" "test.result.write" "organization.manage" "cfp.read" "apps.read" "apps.manage" "vaccination.checkin.write" "organization.test.manage" "support" "security.token.exchange" "test.label.generate" "organization.write" "roles.unspecified" |
Responses
Request samples
- Payload
Content type
{- "roles": [
- "test.checkin.write"
]
}Response samples
- 200
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Update an accounts name in the organization.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Request Body schema:
| updatedName required | string |
Responses
Request samples
- Payload
Content type
{- "updatedName": "string"
}Response samples
- 200
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Update an accounts organizations in the organization.
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Request Body schema:
| updatedOrganizations | Array of strings or null |
| isDeleted | boolean |
Responses
Request samples
- Payload
Content type
{- "updatedOrganizations": [
- "string"
], - "isDeleted": true
}Response samples
- 200
- 409
Content type
application/json
{- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "account_key": "8d097bc0-5265-47eb-90ab-cc8e3a1e4f74",
- "name": "string",
- "email": "string",
- "phone": "string",
- "language": "string",
- "identities": [
- {
- "type": "Undefined",
- "identity": "string",
- "key": "string",
- "visualIdentity": "string",
- "activated": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "verificationLevel": "unverified",
- "roles": [
- "test.checkin.write"
], - "identityCount": 0,
- "identity_count": 0,
- "organizations": [
- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]
}Send a delete warning to the list of accounts in the organization.
path Parameters
| organizationID required | string |
Request Body schema:
Array of objects or null (AccountInParameter) | |||
Array
| |||
Responses
Request samples
- Payload
Content type
{- "accounts": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30"
}
]
}Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Get all organization's accounts that should be deleted
path Parameters
| organizationID required | string |
query Parameters
| daysToWait | integer <int32> Default: 7 |
Responses
Response samples
- 200
- 409
Content type
application/json
{- "accounts": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30"
}
], - "totalNumber": 0
}Remove a list of accounts in the organization.
path Parameters
| organizationID required | string |
Request Body schema:
Array of objects or null (AccountInParameter) | |||
Array
| |||
Responses
Request samples
- Payload
Content type
{- "accounts": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30"
}
]
}Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Create a personal access token
path Parameters
| organizationID required | string |
Request Body schema:
| tokenName | string or null |
| expireDate | string <date-time> |
| roles | Array of strings or null (RoleEnum) Enum: "test.checkin.write" "test.result.write" "organization.manage" "cfp.read" "apps.read" "apps.manage" "vaccination.checkin.write" "organization.test.manage" "support" "security.token.exchange" "test.label.generate" "organization.write" "roles.unspecified" |
Responses
Request samples
- Payload
Content type
{- "tokenName": "string",
- "expireDate": "2019-08-24T14:15:22Z",
- "roles": [
- "test.checkin.write"
]
}Response samples
- 201
- 409
Content type
application/json
{- "token": "string"
}Get all organizations that are linked to the account with role admin
path Parameters
| accountKey required | string <uuid> |
| organizationID required | string |
Responses
Response samples
- 200
- 409
Content type
application/json
[- {
- "organizationId": "string",
- "organization_id": "string",
- "name": "string",
- "timezone": "string",
- "groupName": "unknown",
- "gln": "string",
- "contactPhone": "string",
- "contactEmail": "string",
- "website": "string",
- "mainColor": "string",
- "address": {
- "countryCode": "string",
- "postalCode": "string",
- "city": "string",
- "street": "string",
- "additionalAddress": "string"
}, - "requiredVerificationLevel": "unverified",
- "features": {
- "enableAppointmentList": true,
- "useNewBarcodeLibrary": true
}
}
]Create certificate connection
Register a new person and company (for the provided organization) on the CFP blockchain.
path Parameters
| organizationID required | string |
Request Body schema:
| person_name required | string |
| person_email required | string |
| organization_name required | string |
| organization_legal_id required | string |
| self_service_url | string or null |
| test_types required | Array of strings (TestTypeEnum) Items Enum: "unknown" "cov19.antigen" "cov19.pcr" "cov19.pool_pcr" "cov19.antibody" "cov19.vaccine" "co2.org" "co2.project" "co2.cert" "co2.model" "co2.container" "plastic.cert" "plastic.container" |
Responses
Request samples
- Payload
Content type
{- "person_name": "string",
- "person_email": "string",
- "organization_name": "string",
- "organization_legal_id": "string",
- "self_service_url": "string",
- "test_types": [
- "unknown"
]
}Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Create new communication text
path Parameters
| organizationID required | string |
Request Body schema: application/json
| type required | string (CommunicationChannelTypeEnum) Enum: "phone" "email" |
| eventType required | string |
| testType | string (TestTypeEnum) Enum: "unknown" "cov19.antigen" "cov19.pcr" "cov19.pool_pcr" "cov19.antibody" "cov19.vaccine" "co2.org" "co2.project" "co2.cert" "co2.model" "co2.container" "plastic.cert" "plastic.container" |
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| title | string or null |
| body required | string |
Array of objects or null (EventCommunicationTextTranslationDto) |
Responses
Request samples
- Payload
Content type
application/json
{- "type": "phone",
- "eventType": "string",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "translations": [
- {
- "language": "string",
- "type": "phone",
- "title": "string",
- "body": "string"
}
]
}Response samples
- 201
- 409
Content type
application/json
{- "id": 0,
- "type": "phone",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "translations": [
- {
- "language": "string",
- "title": "string",
- "body": "string"
}
]
}Response samples
- 200
- 409
Content type
application/json
{- "eventCommunicationTexts": [
- {
- "id": 0,
- "type": "phone",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "translations": [
- {
- "language": "string",
- "title": "string",
- "body": "string"
}
]
}
]
}Update a communication text
path Parameters
| organizationID required | string |
| id required | integer <int64> |
Request Body schema: application/json
| type required | string (CommunicationChannelTypeEnum) Enum: "phone" "email" |
| eventType required | string |
| testType | string (TestTypeEnum) Enum: "unknown" "cov19.antigen" "cov19.pcr" "cov19.pool_pcr" "cov19.antibody" "cov19.vaccine" "co2.org" "co2.project" "co2.cert" "co2.model" "co2.container" "plastic.cert" "plastic.container" |
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| title | string or null |
| body required | string |
Array of objects or null (EventCommunicationTextTranslationDto) |
Responses
Request samples
- Payload
Content type
application/json
{- "type": "phone",
- "eventType": "string",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "translations": [
- {
- "language": "string",
- "type": "phone",
- "title": "string",
- "body": "string"
}
]
}Response samples
- 200
- 409
Content type
application/json
{- "id": 0,
- "type": "phone",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "translations": [
- {
- "language": "string",
- "title": "string",
- "body": "string"
}
]
}Delete a communication text
path Parameters
| organizationID required | string |
| id required | integer <int64> |
query Parameters
| language | string |
Responses
Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Create or update translation of a communication text
path Parameters
| organizationID required | string |
| id required | integer <int64> |
| language required | string |
Request Body schema: application/json
| language | string or null |
| type | string (CommunicationChannelTypeEnum) Enum: "phone" "email" |
| title | string or null |
| body | string or null |
Responses
Request samples
- Payload
Content type
application/json
{- "language": "string",
- "type": "phone",
- "title": "string",
- "body": "string"
}Response samples
- 200
- 409
Content type
application/json
{- "eventCommunicationTexts": [
- {
- "id": 0,
- "type": "phone",
- "testType": "unknown",
- "result": "unknown",
- "title": "string",
- "body": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "translations": [
- {
- "language": "string",
- "title": "string",
- "body": "string"
}
]
}
]
}Delete a communication text translation.
path Parameters
| organizationID required | string |
| id required | integer <int64> |
| language required | string |
Responses
Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Get communication text template
path Parameters
| organizationID required | string |
query Parameters
| testType | string |
| type required | string |
| result required | string (TestResultEnum) Enum: "unknown" "positive" "negative" "invalid" "done" "complex" "verified" |
| locale | string |
Responses
Response samples
- 200
- 409
Content type
application/json
{- "body": "string",
- "title": "string"
}Response samples
- 200
- 409
Content type
application/json
{- "otpValidTill": "2019-08-24T14:15:22Z",
- "testCommunicationEvents": [
- {
- "testCode": "string",
- "messageReference": "string",
- "communicationType": "phone",
- "communicationEvents": [
- {
- "diagnostic_code": "string",
- "error_sub_type": "string",
- "error_type": "string",
- "event_type": "string",
- "feedback_reference": "string",
- "status": "string",
- "targetEmail": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
], - "accountCommunicationEvents": [
- {
- "accountKey": "a1ba9121-91cb-4c1e-a87d-5728c28cdd30",
- "messageReference": "string",
- "communicationType": "phone",
- "communicationEvents": [
- {
- "diagnostic_code": "string",
- "error_sub_type": "string",
- "error_type": "string",
- "event_type": "string",
- "feedback_reference": "string",
- "status": "string",
- "targetEmail": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
]
}Send notification to subscribed accounts
Send a notification about a topic to all subscribed accounts of this organization.
path Parameters
| organizationID required | string |
Request Body schema:
| topic required | string (AccountNotificationTopicEnum) Value: "test_not_checked_in" |
| message required | string |
object or null |
Responses
Request samples
- Payload
Content type
{- "topic": "test_not_checked_in",
- "message": "string",
- "metafields": {
- "property1": "string",
- "property2": "string"
}
}Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}Update the types for the organization
Update the types for the organization
path Parameters
| organizationID required | string |
Request Body schema:
| groupName | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" |
| types | Array of strings or null |
| isDeleted | boolean |
Responses
Request samples
- Payload
Content type
{- "groupName": "unknown",
- "types": [
- "string"
], - "isDeleted": true
}Response samples
- 200
- 409
Content type
application/json
{- "organizationID": "string",
- "groupName": "unknown",
- "types": [
- {
- "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get test types for organization
Get all test types for an organization
path Parameters
| organizationID required | string |
query Parameters
| group | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" |
Responses
Response samples
- 201
- 409
Content type
application/json
{- "organizationID": "string",
- "groupName": "unknown",
- "types": [
- {
- "type": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get standard types by group type for organization
Get all standard types by group for an organization
path Parameters
| organizationID required | string |
query Parameters
| group | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" |
Responses
Response samples
- 201
- 409
Content type
application/json
[- {
- "groupName": "unknown",
- "types": [
- "string"
]
}
]Delete test type
Delete test type for a group
path Parameters
| groupType required | string (GroupTypeEnum) Enum: "unknown" "cov19" "co2" "edu" "doc" "vaccine" |
| type required | string |
| organizationID required | string |
Responses
Response samples
- 409
Content type
application/problem+json
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "property1": null,
- "property2": null
}