The following documentation is also available in these formats:
API Reference v1.0
/user/{username}
get
User details
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
UserDetails |
/user/{username}/access/{crn}
get
Details of any restrictions or exclusions
Returns either an exclusionMessage
or restrictionMessage
if the user is not allowed to access the case.
This can happen if the user is excluded from viewing the case (e.g. a family member), or if the case has been restricted to a subset of users that the user is not a part of (e.g. high profile cases).
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | path | string | true | |
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
404 |
A case with the provided CRN does not exist in Delius. Note: this could be the result of a merge or a deletion.
|
UserAccess |
/provider
get
List active providers
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
/provider/{code}
get
Provider details by code
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
code | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
Provider |
/document/{crn}/{id}
get
Download document content
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true | |
id | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
StreamingResponseBody |
/docs/asyncapi
get
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
/case-summary/{crn}/recommendation-model
get
Case data required to populate the recommendation model
This is used to populate the Recall Part A document template when a recommendation is made, and to refresh the case data when a recall decision is made later.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
RecommendationModel |
/case-summary/{crn}/personal-details
get
Personal details including name, date of birth, address
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
PersonalDetails |
/case-summary/{crn}/overview
get
Overview of the probation case including active events/convictions, register flags
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
Overview |
/case-summary/{crn}/mappa-and-rosh-history
get
Current MAPPA and historical RoSH registrations
This is intended to populate the MAPPA (Multi-agency public protection arrangements) and RoSH (Risk of Serious Harm) widgets.
Note that risk assessment information is generally held in OASys, and this endpoint only surfaces supplementary Delius registration/register details.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
MappaAndRoshHistory |
/case-summary/{crn}/licence-conditions
get
Active events/convictions, with licence conditions
Only returns active licence conditions that are associated with active events/convictions
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
LicenceConditions |
/case-summary/{crn}/contact-history
get
Contact history
Returns matching historical records from the Delius contact log, including linked documents, and a summary showing the total number of contacts on the case grouped by type.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true | |
query | query | string | false | Search for contacts that contain the provided text. This currently performs a simple substring match against the notes. |
from | query | string | false | Return only contacts that start after this date |
to | query | string | false | Return only contacts that start before this date. Defaults to the current date. If provided, this value must be on or before the current date. |
type | query | array | false | Filter on contact type codes |
includeSystemGenerated | query | boolean | false | Include (true) or exclude (false) any contact types that are system-generated |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
ContactHistory |
/ap-residence-plan-document/{crn}
get
Find latest approved premises residence plan document
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
Document |
Schemas
Name
Name | Type | Required | Description | Schema |
---|---|---|---|---|
forename | string | true | ||
middleName | string | false | ||
surname | string | true |
Provider
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
name | string | true |
UserDetails
Name | Type | Required | Description | Schema |
---|---|---|---|---|
name | object | true | Name | |
username | string | true | ||
string | false | |||
homeArea | object | false | Provider | |
staffCode | string | false |
UserAccess
Name | Type | Required | Description | Schema |
---|---|---|---|---|
exclusionMessage | string | false | ||
restrictionMessage | string | false | ||
userExcluded | boolean | true | ||
userRestricted | boolean | true |
StreamingResponseBody
Address
Name | Type | Required | Description | Schema |
---|---|---|---|---|
buildingName | string | false | ||
addressNumber | string | false | ||
streetName | string | false | ||
district | string | false | ||
town | string | false | ||
county | string | false | ||
postcode | string | false | ||
noFixedAbode | boolean | false |
Conviction
Name | Type | Required | Description | Schema |
---|---|---|---|---|
number | string | true | ||
sentence | object | false | Sentence | |
mainOffence | object | true | Offence | |
additionalOffences | array | true | Offence |
ConvictionDetails
Name | Type | Required | Description | Schema |
---|---|---|---|---|
number | string | true | ||
sentence | object | false | ExtendedSentence | |
mainOffence | object | true | Offence | |
additionalOffences | array | true | Offence |
ExtendedSentence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
description | string | true | ||
length | integer | false | ||
lengthUnits | string | false | ||
secondLength | integer | false | ||
secondLengthUnits | string | false | ||
isCustodial | boolean | true | ||
custodialStatusCode | string | false | ||
startDate | string | false | ||
licenceExpiryDate | string | false | ||
sentenceExpiryDate | string | false |
Identifiers
Name | Type | Required | Description | Schema |
---|---|---|---|---|
pncNumber | string | false | ||
croNumber | string | false | ||
nomsNumber | string | false | ||
bookingNumber | string | false |
Institution
Name | Type | Required | Description | Schema |
---|---|---|---|---|
name | string | false | ||
description | string | true |
Mappa
Name | Type | Required | Description | Schema |
---|---|---|---|---|
category | integer | false | ||
level | integer | false | ||
startDate | string | true |
Offence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
date | string | false | ||
code | string | true | ||
description | string | true |
PersonalDetailsOverview
Name | Type | Required | Description | Schema |
---|---|---|---|---|
name | object | true | Name | |
identifiers | object | true | Identifiers | |
dateOfBirth | string | true | ||
gender | string | true | ||
ethnicity | string | false | ||
primaryLanguage | string | false |
RecommendationModel
Name | Type | Required | Description | Schema |
---|---|---|---|---|
personalDetails | object | true | PersonalDetailsOverview | |
mainAddress | object | false | Address | |
lastRelease | object | false | Release | |
lastReleasedFromInstitution | object | false | Institution | |
mappa | object | false | Mappa | |
activeConvictions | array | true | Conviction | |
activeCustodialConvictions | array | true | ConvictionDetails |
Release
Name | Type | Required | Description | Schema |
---|---|---|---|---|
releaseDate | string | true | ||
recallDate | string | false |
Sentence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
description | string | true | ||
length | integer | false | ||
lengthUnits | string | false | ||
isCustodial | boolean | true | ||
custodialStatusCode | string | false | ||
licenceExpiryDate | string | false | ||
sentenceExpiryDate | string | false |
Manager
Name | Type | Required | Description | Schema |
---|---|---|---|---|
staffCode | string | true | ||
name | object | true | Name | |
provider | object | true | Provider | |
team | object | true | Team |
PersonalDetails
Name | Type | Required | Description | Schema |
---|---|---|---|---|
personalDetails | object | true | PersonalDetailsOverview | |
mainAddress | object | false | Address | |
communityManager | object | false | Manager |
Team
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
name | string | true | ||
localAdminUnit | string | true | ||
telephone | string | false | ||
string | false |
Overview
Name | Type | Required | Description | Schema |
---|---|---|---|---|
personalDetails | object | true | PersonalDetailsOverview | |
registerFlags | array | true | ||
lastRelease | object | false | Release | |
activeConvictions | array | true | Conviction |
MappaAndRoshHistory
Name | Type | Required | Description | Schema |
---|---|---|---|---|
personalDetails | object | true | PersonalDetailsOverview | |
mappa | object | false | Mappa | |
roshHistory | array | true | Rosh |
Rosh
Name | Type | Required | Description | Schema |
---|---|---|---|---|
active | boolean | true | ||
type | string | true | ||
typeDescription | string | true | ||
notes | string | false | ||
startDate | string | true |
ConvictionWithLicenceConditions
Name | Type | Required | Description | Schema |
---|---|---|---|---|
number | string | true | ||
sentence | object | false | Sentence | |
mainOffence | object | true | Offence | |
additionalOffences | array | true | Offence | |
licenceConditions | array | true | LicenceCondition |
LicenceCondition
Name | Type | Required | Description | Schema |
---|---|---|---|---|
startDate | string | true | ||
mainCategory | object | true | LicenceConditionCategory | |
subCategory | object | false | LicenceConditionCategory | |
notes | string | false |
LicenceConditionCategory
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
LicenceConditions
Name | Type | Required | Description | Schema |
---|---|---|---|---|
personalDetails | object | true | PersonalDetailsOverview | |
activeConvictions | array | true | ConvictionWithLicenceConditions |
Contact
Name | Type | Required | Description | Schema |
---|---|---|---|---|
description | string | false | ||
documents | array | true | DocumentReference | |
enforcementAction | string | false | ||
notes | string | false | ||
outcome | string | false | ||
sensitive | boolean | false | ||
startDateTime | string | true | ||
type | object | true | Type |
ContactHistory
Name | Type | Required | Description | Schema |
---|---|---|---|---|
personalDetails | object | true | PersonalDetailsOverview | |
contacts | array | true | Contact | |
summary | object | true | ContactSummary |
ContactSummary
Name | Type | Required | Description | Schema |
---|---|---|---|---|
types | array | true | ContactTypeSummary | |
hits | integer | true | ||
total | integer | true |
ContactTypeSummary
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
total | integer | true |
DocumentReference
Name | Type | Required | Description | Schema |
---|---|---|---|---|
id | string | true | ||
name | string | true | ||
lastUpdated | string | true |
Type
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
systemGenerated | boolean | true |
Document
Name | Type | Required | Description | Schema |
---|---|---|---|---|
id | string | true | ||
name | string | true | ||
description | string | false | ||
type | string | true | ||
author | string | false | ||
createdAt | string | false | ||
lastUpdatedAt | string | false |