Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

/users/{username}/access/{identifier}

get

Provides the case access for a given user and case identifier (crn or prisoner number)

Parameters

ParameterInTypeRequiredDescription
username path string true
identifier path string true

Responses

StatusDescriptionSchema
200

OK

{
  "crn": "string",
  "userExcluded": "boolean",
  "userRestricted": "boolean",
  "exclusionMessage": "string",
  "restrictionMessage": "string"
}
CaseAccess

/providers

get

Returns a list of providers

Responses

StatusDescriptionSchema
200

OK

{
}

/providers/{providerCode}/pdus

get

Returns a list of pdus for a given provider code

Parameters

ParameterInTypeRequiredDescription
providerCode path string true

Responses

StatusDescriptionSchema
200

OK

{
}

/providers/{providerCode}/pdus/{pduCode}/locations

get

Returns a list of office locations for a given provider code and pdu code

Parameters

ParameterInTypeRequiredDescription
providerCode path string true
pduCode path string true

Responses

StatusDescriptionSchema
200

OK

{
}

/person/{crn}/accredited-programme-history

get

Returns a list of accredited programmes for the provided crn

Parameters

ParameterInTypeRequiredDescription
crn path string true

Responses

StatusDescriptionSchema
200

OK

{
}

/person/find/{identifier}

get

Finds an offender with the provided identifier (crn or prisoner number)

Parameters

ParameterInTypeRequiredDescription
identifier path string true

Responses

StatusDescriptionSchema
200

OK

{
  "crn": "string",
  "nomsNumber": "string",
  "name": {
    "forename": "string",
    "middleName": "string",
    "surname": "string"
  },
  "dateOfBirth": "string",
  "ethnicity": "string",
  "gender": "string",
  "probationDeliveryUnit": {
    "code": "string",
    "description": "string"
  },
  "setting": "string"
}
PersonResponse

Schemas

CaseAccess

NameTypeRequiredDescriptionSchema
crn string true
userExcluded boolean true
userRestricted boolean true
exclusionMessage string false
restrictionMessage string false

Provider

NameTypeRequiredDescriptionSchema
code string false
description string true

ProbationDeliveryUnit

NameTypeRequiredDescriptionSchema
code string false
description string true

OfficeAddress

NameTypeRequiredDescriptionSchema
officeName string true
buildingName string false
buildingNumber string false
streetName string false
district string false
town string false
county string false
postcode string false
email string false
ldu string true
telephoneNumber string false
from string true
to string false

AccreditedProgramme

NameTypeRequiredDescriptionSchema
programme string false
startDate string true
endDate string false
endReason string false
description string false
active boolean true
notes string false

Name

NameTypeRequiredDescriptionSchema
forename string true
middleName string false
surname string true

PersonResponse

NameTypeRequiredDescriptionSchema
crn string true
nomsNumber string false
name object true Name
dateOfBirth string true
ethnicity string false
gender string false
probationDeliveryUnit object false ProbationDeliveryUnit
setting string true