# Get Task (deprecated)

Retrieve task information for the given ID.

Endpoint: GET /v2/tasks/{id}
Version: 1.0.0
Security: apiKeyAuth, practiceGroupId

## Security:

  - `apiKeyAuth` (unknown)
    apiKey in header x-api-key

  - `practiceGroupId` (unknown)
    apiKey in header x-practice-group-id

## Path parameters:

  - `id` (string, required)

## Response 200:

  - `200` (unknown)
    Ok

## Response 200 fields (application/json):

  - `id` (string, required)

  - `type_label` (string, required)

  - `status` (string, required)
    Enum: "open", "closed", "in_progress"

  - `details` (string)

  - `category` (string, required)

  - `patient` (object, required)

  - `patient.id` (string, required)

  - `patient.uid` (string)

  - `patient.ehr_partner_id` (string)

  - `patient.emis_id` (string)

  - `patient.deceased_at` (string)

  - `patient.ods_code` (string)

  - `patient.dob` (string, required)

  - `patient.title` (string)

  - `patient.first_name` (string)

  - `patient.last_name` (string)

  - `patient.sex` (string, required)
    Enum: "unspecified", "male", "female", "other"

  - `patient.nhs_number` (string)

  - `patient.email` (string)

  - `patient.mobile` (string)

  - `patient.last_sync_at` (string)

  - `patient.full_name` (string, required)

  - `patient.contact_emails` (array, required)

  - `patient.registered_practitioner_name` (string, required)

  - `patient.notes` (string, required)

  - `patient.membership_scheme_names` (array, required)

  - `patient.address` (object, required)

  - `patient.address.line1` (string)

  - `patient.address.line2` (string)

  - `patient.address.line3` (string)

  - `patient.address.town` (string, required)

  - `patient.address.county` (string)

  - `patient.address.country` (string, required)

  - `patient.address.postcode` (string, required)

  - `patient.verification_credentials_list` (array)
    An array of unique emails and mobile numbers from the verification credentials associated with the patients practice group, Only applicable for practices using the JS booking flow and marked as private

  - `form_response` (object)

  - `form_response.id` (number, required)

  - `form_response.form_id` (number, required)

  - `form_response.client_id` (number, required)

  - `form_response.appointment_id` (number, required)

  - `form_response.invoice_id` (number, required)

  - `form_response.practice_group_id` (number, required)

  - `form_response.created_at` (string, required)

  - `form_response.updated_at` (string, required)

  - `form_response.hidden` (boolean, required)

  - `form_response.emis_file_record_at` (string, required)

  - `form_response.short_link_id` (number, required)

  - `form_response.admin_id` (number, required)

  - `form_response.write_to_record_error` (string, required)

  - `form_response.title` (string, required)

  - `form_response.submitted_at` (string, required)

  - `form_response.form_questions_responses` (array, required)

  - `form_response.form_questions_responses.id` (string, required)

  - `form_response.form_questions_responses.question` (string, required)

  - `form_response.form_questions_responses.answer` (string, required)

  - `form_response.form_questions_responses.snomed_code` (string)

  - `form_response.form_questions_responses.type` (string, required)
    Enum: "str", "int", "bool", "datepicker", "text", "radio", "dropdown", "checkboxes", "consent", "paragraph", "attachment", "observation", "problem", "immunisation"

  - `form_response.form_questions_responses.file` (object)

  - `form_response.form_questions_responses.file.file_name` (string, required)

  - `form_response.form_questions_responses.file.content_type` (string, required)

  - `form_response.form_questions_responses.file.byte_size` (number, required)

  - `form_response.form_questions_responses.file.url` (string, required)

  - `form_response.form` (object, required)

  - `form_response.form.id` (string, required)

  - `form_response.form.title` (string, required)

  - `form_response.form.description` (string, required)

  - `form_response.form.patient_title` (string, required)

  - `form_response.form.patient_description` (string, required)

  - `form_response.form.reply_form` (boolean, required)

  - `form_response.form.form_type` (string, required)
    Enum: "questionnaire", "response", "appointment", "care_navigation", "intake_form", "structured_consult"

  - `form_response.form.snomed_code` (string, required)

  - `form_response.write_to_record_status` (string, required)

  - `appointment` (object)

  - `appointment.id` (string, required)

  - `appointment.location_id` (string, required)

  - `appointment.start_time` (string, required)

  - `appointment.reserved_until` (string)

  - `appointment.booking_confirmed_at` (string)

  - `appointment.can_be_cancelled` (boolean)

  - `appointment.can_be_rescheduled` (boolean)

  - `appointment.cancellation_policy_hours` (number)

  - `appointment.appointment_template_name` (string)

  - `appointment.cancelled_at` (string)

  - `appointment.confirmed_at` (string)

  - `appointment.appointment_source` (string)

  - `appointment.video` (boolean)

  - `appointment.in_person` (boolean)

  - `appointment.telephone` (boolean)

  - `appointment.location_name` (string)

  - `appointment.service` (string)

  - `appointment.source` (string)

  - `appointment.status` (string)

  - `appointment.appointment_type_id` (string)

  - `appointment.duration` (number)

  - `appointment.patient_uid` (string)

  - `appointment.practitioner_id` (string)

  - `appointment.booking_status` (string)
    The appointment's booking status in Hero.
    Enum: "reserved", "pending", "confirmed", "cancelling", "rescheduling", "abandoned", "cancelled", "failed", "unknown"

  - `appointment.booking_mechanism` (string)
    Enum: "hero_confirmed", "ehr_confirmed"

  - `appointment.created_at` (string)

  - `appointment.reason` (string)

  - `appointment.internal_reason` (string)

  - `appointment.practitioner_name` (string)

  - `appointment.communication_method` (string)

  - `appointment.video_url` (string)

  - `appointment.rescheduled_at` (string)

  - `communication` (object)

  - `communication.id` (string, required)

  - `communication.content` (string)

  - `communication.contact_method` (string, required)
    Enum: "email", "sms", "hero", "nhs_app"

  - `communication.write_to_record_timestamp` (string)

  - `communication.write_to_record_error` (string)

  - `communication.write_to_record_status` (string, required)

  - `communication.short_link` (object)

  - `communication.short_link.id` (string)

  - `communication.short_link.type` (string)

  - `communication.short_link.name` (string)

  - `communication.short_link.status` (string)

  - `communication.short_link.url` (string)

  - `communication.short_link.appointment_types` (array)

  - `communication.short_link.from_date` (string)

  - `communication.short_link.to_date` (string)

  - `communication.short_link.expires_at` (string)

  - `communication.short_link.uses` (number)

  - `communication.short_link.maximum_uses` (number)
    Null when the link can be used any number of times

  - `communication.notification` (object, required)

  - `communication.notification.id` (string, required)

  - `communication.notification.sent_at` (string, required)

  - `communication.notification.status` (string, required)

  - `communication.notification.primary_recipient_contact_detail` (string)

  - `communication.notification.failure_reason` (string)

  - `note` (object)

  - `note.id` (number, required)

  - `note.description` (string, required)

  - `note.admin` (object, required)

  - `note.admin.id` (number, required)

  - `note.admin.first_name` (string, required)

  - `note.admin.last_name` (string, required)

  - `note.admin.full_name` (string, required)

  - `note.practice_group_id` (number, required)

  - `note.archived_at` (string, required)

  - `note.created_at` (string, required)

  - `note.updated_at` (string, required)

  - `assignee_id` (string)

  - `assignee_type` (string)

  - `assignee_name` (string)

  - `priority` (string, required)
    Enum: "lowest", "low", "medium", "high", "highest"

  - `created_at` (string, required)

  - `title` (string, required)

  - `title_sub_text` (string, required)

  - `name` (string, required)

  - `taskable_type` (string, required)

  - `triggered_by` (object)

  - `triggered_by.id` (string, required)

  - `triggered_by.type` (string, required)
    Enum: "Admin", "Client"

  - `triggered_by.name` (string, required)

  - `system_alert_details` (object)

  - `system_alert_details.type` (string, required)
    Enum: "emis_alert", "message_failed"

  - `system_alert_details.title` (string, required)

  - `system_alert_details.message` (string, required)

  - `system_alert_details.sub_title` (string, required)

  - `system_alert_details.action` (string, required)

  - `form_response_id` (any)

  - `communication_id` (any)

  - `appointment_id` (any)

  - `note_id` (any)

## Response 400:

  - `400` (unknown)
    Validation error

## Response 400 fields (application/json):

  - `error` (boolean, required)
    Example: true

  - `statusCode` (number, required)
    Example: 400

  - `message` (array, required)

  - `message.code` (string, required)
    Example: invalid_type

  - `message.expected` (string, required)
    Example: string

  - `message.path` (array, required)
    Example: ["patient_id"]

  - `message.message` (string, required)
    Example: Required

## Response 401:

  - `401` (unknown)
    Unauthorised

## Response 404:

  - `404` (unknown)
    Not found

## Response 429:

  - `429` (unknown)
    Too Many Requests

## Response 500:

  - `500` (unknown)
    Unknown error

