keyper HPS Admin 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).
Import new test-codes
Import new test-codes that can be used to perform tests. Please ensure, these codes are unique within the system. It´s recommeded to prefix them.
The test.write scopes is required.
Authorizations:
Request Body schema: application/json
Array of objects or null (ImportTestDto) | |||
Array
| |||
Responses
Request samples
- Payload
{- "tests": [
- {
- "test_code": "string"
}
]
}Response samples
- 409
Get basic information about a test execution
Get info about a test execution.
The test-execution.read scopes is required.
Authorizations:
path Parameters
| testCode required | string |
query Parameters
| includeMetadata | boolean Default: false |
Responses
Response samples
- 200
- 409
{- "test_execution_id": 0,
- "organizationId": "string",
- "code": "string",
- "type": "string",
- "manufacturer": "string",
- "material": "string",
- "name": "string",
- "external_reference": "string",
- "externalReference": "string",
- "state": "not_started",
- "result": "invalid",
- "created_at": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "metadata": {
- "appTransferCode": "string",
- "cwaProcedure": "string",
- "markedAsPaid": true,
- "serviceId": "string",
- "serviceName": "string",
- "paidOnline": true,
- "testQuestionnaire": "string",
- "vaccinationInfo": "string",
- "reportingOrgId": "string",
- "reportingOrgEmail": "string"
}
}Get the Personal Identifiable Information (PII) for a test execution
Get PII for a test execution.
The pii.read and test-execution.read scopes are required.
Authorizations:
path Parameters
| testCode required | string |
Responses
Response samples
- 200
- 409
{- "salutation": "string",
- "title": "string",
- "first_name": "string",
- "last_name": "string",
- "gender": "string",
- "email": "string",
- "phone": "string",
- "date_of_birth": "2019-08-24T14:15:22Z",
- "insurance_number": "string",
- "id_number": "string",
- "cfp_key": "string",
- "city": "string",
- "street": "string",
- "country_code": "string",
- "postal_code": "string"
}