openapi: 3.0.1 info: title: API V1 version: v1 tags: - name: Callback Booking Quotas description: Endpoints for callback booking quotas - name: Candidates description: Endpoints for candidate operations - name: Get into Teaching description: Endpoints for the Get into Teaching service - name: Lookup Items description: Endpoints for lookup items - name: Mailing List description: Endpoints for the mailing list service - name: Operations description: Endpoints for operations and health checks - name: Pick List Items description: Endpoints for pick list items - name: Privacy Policies description: Endpoints for privacy policies - name: Schools Experience description: Endpoints for the schools experience service - name: Teaching Event Buildings description: Endpoints for teaching event buildings - name: Teaching Events description: Endpoints for searching and retrieving teaching events - name: Teacher Training Adviser description: Endpoints for the teacher training adviser service security: - bearerAuth: [] paths: "/api/callback_booking_quotas": get: tags: - Callback Booking Quotas summary: Retrieves all callback booking quotas. operationId: GetCallbackBookingQuotas responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/CallbackBookingQuota" 401: $ref: "#/components/responses/Unauthorized" "/api/candidates/access_tokens": post: tags: - Candidates summary: Create an access token for an existing candidate. operationId: CreateCandidateAccessToken requestBody: description: Candidate details to create an access token. required: true content: application/json: schema: $ref: "#/components/schemas/ExistingCandidateRequest" responses: 204: description: no content 400: description: bad request content: application/json: schema: type: object example: errors: - error: BadRequest message: "Email can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/get_into_teaching/callbacks": post: tags: - Get into Teaching summary: Schedule a callback for a candidate. description: Queues a candidate upsert job. operationId: BookGetIntoTeachingCallback requestBody: description: Candidate callback details. required: true content: application/json: schema: $ref: "#/components/schemas/GetIntoTeachingCallback" responses: 204: description: no content 400: description: bad request content: application/json: example: errors: - error: BadRequest message: "Email can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/get_into_teaching/matchbacks": post: tags: - Get into Teaching summary: Perform a matchback operation to retrieve a pre-populated sign up for the candidate. description: Retrieves an existing candidate record based on the provided details. operationId: MatchbackGetIntoTeachingCallback requestBody: description: Candidate details to matchback. required: true content: application/json: schema: $ref: "#/components/schemas/ExistingCandidateRequest" responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/GetIntoTeachingCallback" 400: description: bad request content: application/json: schema: type: object example: errors: - error: "BadRequest" message: "Matchback failed: candidate not found" 401: $ref: "#/components/responses/Unauthorized" "/api/get_into_teaching/candidates/exchange_access_token/{accessToken}": post: tags: - Get into Teaching summary: Exchange an access token for a full candidate sign-up. description: Exchanges an access token for a candidate's details to pre-populate a sign-up form. operationId: ExchangeAccessTokenForGetIntoTeachingCallback parameters: - name: accessToken in: path required: true description: The access token to exchange. schema: type: string requestBody: description: Candidate details to exchange. required: true content: application/json: schema: $ref: "#/components/schemas/ExistingCandidateRequest" responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/GetIntoTeachingCallback" 400: description: bad request content: application/json: schema: type: object example: errors: - error: "BadRequest" message: "Email can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/lookup_items/countries": get: tags: - Lookup Items summary: list countries operationId: GetCountries responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/Country" 401: $ref: "#/components/responses/Unauthorized" "/api/lookup_items/degree_countries": get: tags: - Lookup Items summary: Retrieves the list of degree countries. operationId: GetDegreeCountries responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/Country" 401: $ref: "#/components/responses/Unauthorized" "/api/lookup_items/teaching_subjects": get: tags: - Lookup Items summary: list teaching subjects operationId: GetTeachingSubjects responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/TeachingSubject" 401: $ref: "#/components/responses/Unauthorized" "/api/mailing_list/members": post: tags: - Mailing List summary: Adds a new member to the mailing list. description: | If the candidate_id is specified then the existing candidate will be added to the mailing list, otherwise a new candidate will be created. operationId: AddMailingListMember requestBody: description: Member to add to the mailing list. required: true content: application/json: schema: $ref: "#/components/schemas/MailingListAddMember" responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/DegreeStatusResponse" 400: description: bad request content: application/json: schema: type: object example: errors: - error: BadRequest message: "Email can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/mailing_list/members/exchange_access_token/{accessToken}": post: tags: - Mailing List summary: Exchange an access token for a mailing list member sign-up. operationId: ExchangeAccessTokenForMailingListAddMember parameters: - name: accessToken in: path required: true description: The access token to exchange. schema: type: string requestBody: description: Candidate details to exchange. required: true content: application/json: schema: $ref: "#/components/schemas/ExistingCandidateRequest" responses: 200: description: successful content: application/json: schema: type: object 400: description: bad request content: application/json: schema: type: object example: errors: - error: BadRequest message: "Email can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/operations/health_check": get: tags: - Operations summary: Performs a health check. description: Checks the health of the API and its dependencies. operationId: HealthCheck responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/HealthCheckResponse" "/api/pick_list_items/candidate/adviser_eligibilities": get: tags: - Pick List Items summary: Retrieves the list of candidate adviser eligibilities. operationId: GetCandidateAdviserEligibilities responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/adviser_requirements": get: tags: - Pick List Items summary: Retrieves the list of candidate adviser requirements. operationId: GetCandidateAdviserRequirements responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/assignment_statuses": get: tags: - Pick List Items summary: Retrieves the list of candidate assignment statuses. operationId: GetCandidateAssignmentStatuses responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/channels": get: tags: - Pick List Items summary: Retrieves the list of candidate channels. operationId: GetCandidateChannels responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/citizenships": get: tags: - Pick List Items summary: Retrieves the list of candidate citizenships. operationId: GetCandidateCitizenships responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/consideration_journey_stages": get: tags: - Pick List Items summary: Retrieves the list of candidate consideration journey stages. operationId: GetCandidateJourneyStages responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/event_subscription_channels": get: tags: - Pick List Items summary: Retrieves the list of candidate event subscription channels. operationId: GetCandidateEventSubscriptionChannels responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/gcse_statuses": get: tags: - Pick List Items summary: Retrieves the list of candidate GCSE statuses. operationId: GetCandidateGcseStatuses responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/has_qualified_teacher_statuses": get: tags: - Pick List Items summary: Retrieves the list of candidate has qualified teacher statuses. operationId: GetCandidateHasQualifiedTeacherStatuses responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/initial_teacher_training_years": get: tags: - Pick List Items summary: Retrieves the list of candidate initial teacher training years. operationId: GetCandidateInitialTeacherTrainingYears responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/locations": get: tags: - Pick List Items summary: Retrieves the list of candidate locations. operationId: GetCandidateLocations responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/mailing_list_subscription_channels": get: tags: - Pick List Items summary: Retrieves the list of candidate mailing list subscription channels. operationId: GetCandidateMailingListSubscriptionChannels responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/preferred_education_phases": get: tags: - Pick List Items summary: Retrieves the list of candidate preferred education phases. operationId: GetCandidatePreferredEducationPhases responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/retake_gcse_statuses": get: tags: - Pick List Items summary: Retrieves the list of candidate retake GCSE statuses. operationId: GetCandidateRetakeGcseStatuses responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/situations": get: tags: - Pick List Items summary: Retrieves the list of candidate situations. operationId: GetCandidateSituations responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/teacher_training_adviser_subscription_channels": get: tags: - Pick List Items summary: Retrieves the list of candidate teacher training adviser subscription channels. operationId: GetCandidateTeacherTrainingAdviserSubscriptionChannels responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/types": get: tags: - Pick List Items summary: Retrieves the list of candidate types. operationId: GetCandidateTypes responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/candidate/visa_statuses": get: tags: - Pick List Items summary: Retrieves the list of candidate visa statuses. operationId: GetCandidateVisaStatuses responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/contact_creation_channel/activities": get: tags: - Pick List Items summary: Retrieves the list of contact creation channel activities. operationId: GetContactCreationChannelActivities responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/contact_creation_channel/services": get: tags: - Pick List Items summary: Retrieves the list of contact creation channel services. operationId: GetContactCreationChannelServices responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/contact_creation_channel/sources": get: tags: - Pick List Items summary: Retrieves the list of contact creation channel sources. operationId: GetContactCreationChannelSources responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/past_teaching_position/education_phases": get: tags: - Pick List Items summary: Retrieves the list of past teaching position education phases. operationId: GetPastTeachingPositionEducationPhases responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/phone_call/channels": get: tags: - Pick List Items summary: Retrieves the list of phone call channels. operationId: GetPhoneCallChannels responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/qualification/degree_statuses": get: tags: - Pick List Items summary: Retrieves the list of qualification degree statuses. operationId: GetQualificationDegreeStatuses responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/qualification/types": get: tags: - Pick List Items summary: Retrieves the list of qualification types. operationId: GetQualificationTypes responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/qualification/uk_degree_grades": get: tags: - Pick List Items summary: Retrieves the list of qualification UK degree grades. operationId: GetQualificationUkDegreeGrades responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/service_subscription/types": get: tags: - Pick List Items summary: Retrieves the list of subscription types. operationId: GetSubscriptionTypes responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/teaching_event/accessibility_items": get: tags: - Pick List Items summary: Retrieves the list of teaching event accessibility items. operationId: GetTeachingEventAccessibilty responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/teaching_event/regions": get: tags: - Pick List Items summary: Retrieves the list of teaching event regions. operationId: GetTeachingEventRegions responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/teaching_event/registration_channels": get: tags: - Pick List Items summary: Retrieves the list of teaching event registration channels. operationId: GetTeachingEventRegistrationChannels responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/teaching_event/statuses": get: tags: - Pick List Items summary: Retrieves the list of teaching event statuses. operationId: GetTeachingEventStatuses responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/pick_list_items/teaching_event/types": get: tags: - Pick List Items summary: Retrieves the list of teaching event types. operationId: GetTeachingEventTypes responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/PickListItem" 401: $ref: "#/components/responses/Unauthorized" "/api/privacy_policies/latest": get: tags: - Privacy Policies summary: Retrieves the latest privacy policy. operationId: GetLatestPrivacyPolicy responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/PrivacyPolicy" 401: $ref: "#/components/responses/Unauthorized" "/api/privacy_policies/{id}": get: tags: - Privacy Policies summary: Retrieves a privacy policy. operationId: GetPrivacyPolicy parameters: - name: id in: path required: true description: The id of the privacy policy. schema: type: string responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/PrivacyPolicy" 401: $ref: "#/components/responses/Unauthorized" "/api/schools_experience/candidates": get: tags: - Schools Experience summary: Retrieves existing SchoolsExperienceSignUps for the candidate ids. operationId: GetSchoolsExperienceSignUps parameters: - name: ids[] in: query description: A collection of Candidate ids. required: true schema: type: array items: type: string format: uuid style: form explode: true responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/SchoolsExperienceSignUp" 401: $ref: "#/components/responses/Unauthorized" post: tags: - Schools Experience summary: Creates a new candidate for the Schools Experience service. operationId: SignUpSchoolsExperienceCandidate requestBody: description: Candidate to create for the Schools Experience service. required: true content: application/json: schema: $ref: "#/components/schemas/SchoolsExperienceSignUp" responses: 201: description: Created content: application/json: schema: $ref: "#/components/schemas/SchoolsExperienceSignUp" 400: description: bad request content: application/json: example: errors: - error: BadRequest message: "first_name can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/schools_experience/candidates/{id}": get: tags: - Schools Experience summary: Retrieves a candidate for the Schools Experience service. operationId: GetSchoolsExperienceCandidate parameters: - name: id in: path required: true description: The id of the candidate. schema: type: string responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/SchoolsExperienceSignUp" 401: $ref: "#/components/responses/Unauthorized" 404: description: not found "/api/schools_experience/candidates/exchange_access_token/{accessToken}": post: tags: - Schools Experience summary: Exchange an access token for a full candidate sign-up. description: Exchanges an access token for a candidate's details to pre-populate a sign-up form. operationId: ExchangeAccessTokenForSchoolsExperienceSignUp parameters: - name: accessToken in: path required: true description: The access token to exchange. schema: type: string requestBody: description: Candidate details to exchange. required: true content: application/json: schema: $ref: "#/components/schemas/ExistingCandidateRequest" responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/SchoolsExperienceSignUp" 400: description: bad request content: application/json: schema: type: object example: errors: - error: "BadRequest" message: "Email can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/schools_experience/candidates/{id}/school_experience": post: tags: - Schools Experience summary: Adds a school experience to a candidate. operationId: AddSchoolExperience parameters: - name: id in: path required: true description: The id of the candidate. schema: type: string format: uuid requestBody: description: School experience details to add. required: true content: application/json: schema: $ref: "#/components/schemas/CandidateSchoolExperience" responses: 204: description: no content 400: description: bad request content: application/json: schema: type: object example: errors: - error: BadRequest message: "school_urn can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/teaching_event_buildings": get: tags: - Teaching Event Buildings summary: Retrieves all event buildings. operationId: GetTeachingEventBuildings responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/TeachingEventBuilding" 401: $ref: "#/components/responses/Unauthorized" "/api/teaching_events/search": get: tags: - Teaching Events summary: Searches for teaching events. description: | Searches for teaching events. Optionally limit the results by distance (in miles) from a postcode, event type, start date, and more. operationId: SearchTeachingEvents parameters: - name: postcode in: query description: Postcode to center the search around. schema: type: string - name: radius in: query description: Radius in miles to search around the postcode. schema: type: integer format: int32 minimum: 1 - name: type_ids in: query description: Filter by teaching event type IDs. schema: type: array items: type: integer format: int32 style: form explode: true - name: online in: query description: Set to true for online events, false for in-person events. schema: type: boolean - name: start_after in: query description: Filter to events starting after this date. example: "2025-07-01T00:00:00Z" schema: type: string format: date-time - name: start_before in: query description: Filter to events starting before this date. schema: type: string format: date-time - name: status_ids in: query description: Filter by event status IDs. schema: type: array items: type: integer format: int32 style: form explode: true - name: accessibility_options in: query description: Filter by accessibility option IDs. schema: type: array items: type: integer format: int32 style: form explode: true - name: quantity in: query description: Maximum number of results to return. schema: type: integer format: int32 default: 10 responses: 200: description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/TeachingEvent" 400: description: bad request content: application/json: example: errors: - error: BadRequest message: "Postcode must be a valid UK postcode" 401: $ref: "#/components/responses/Unauthorized" "/api/teaching_events/{readable_id}": get: tags: - Teaching Events summary: Retrieves a teaching event. operationId: GetTeachingEvent parameters: - name: readable_id in: path required: true description: The readable ID of the teaching event. schema: type: string responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/TeachingEvent" 401: $ref: "#/components/responses/Unauthorized" 404: description: not found "/api/teaching_events": post: tags: - Teaching Events summary: Adds or updates a teaching event. description: | If the `id` is specified then the existing teaching event will be updated, otherwise a new teaching event will be created. operationId: UpsertTeachingEvent requestBody: description: Teaching event to upsert. required: true content: application/json: schema: $ref: "#/components/schemas/TeachingEvent" example: id: "123e4567-e89b-12d3-a456-426614174000" type_id: 222750000 status_id: 222750001 region_id: 222750002 readable_id: "250930-get-into-teaching-north-event" is_online: false name: "Get into Teaching - London" start_at: "2026-07-15T10:00:00Z" end_at: "2026-07-15T16:00:00Z" building: venue: "The Open University in Wales" address_line1: "Custom House Street" address_line2: ~ address_line3: ~ address_city: "Cardiff" address_postcode: "CF10 1AP" image_url: ~ id: "3290fb7f-93b4-eb11-8236-000d3a26ba1b" responses: 201: description: Created content: application/json: schema: $ref: "#/components/schemas/TeachingEvent" 400: description: bad request content: application/json: example: errors: - error: BadRequest message: "name can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/teacher_training_adviser/candidates": post: tags: - Teacher Training Adviser summary: Sign up a candidate for the Teacher Training Adviser service. operationId: SignUpTeacherTrainingAdviserCandidate requestBody: description: Candidate to sign up for the Teacher Training Adviser service. required: true content: application/json: schema: $ref: "#/components/schemas/TeacherTrainingAdviserSignUp" responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/DegreeStatusResponse" 400: description: bad request content: application/json: schema: type: object example: errors: - error: "BadRequest" message: "Email can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/teacher_training_adviser/candidates/exchange_access_token/{accessToken}": post: tags: - Teacher Training Adviser summary: Exchange an access token for a full candidate sign-up. operationId: ExchangeAccessTokenForTeacherTrainingAdviserSignUp parameters: - name: accessToken in: path required: true description: The access token to exchange. schema: type: string requestBody: description: Candidate details to exchange. required: true content: application/json: schema: $ref: "#/components/schemas/ExistingCandidateRequest" responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/TeacherTrainingAdviserSignUp" 400: description: bad request content: application/json: schema: type: object example: errors: - error: "BadRequest" message: "Email can't be blank" 401: $ref: "#/components/responses/Unauthorized" "/api/teacher_training_adviser/matchbacks": post: tags: - Teacher Training Adviser summary: Perform a matchback operation to retrieve a pre-populated sign up for the candidate. operationId: MatchbackCandidate requestBody: description: Candidate details to matchback. required: true content: application/json: schema: $ref: "#/components/schemas/ExistingCandidateRequest" responses: 200: description: successful content: application/json: schema: $ref: "#/components/schemas/TeacherTrainingAdviserSignUp" 400: description: bad request content: application/json: schema: type: object example: errors: - error: "BadRequest" message: "Matchback failed: candidate not found" 401: $ref: "#/components/responses/Unauthorized" components: securitySchemes: bearerAuth: type: http scheme: bearer description: 'API token passed as `Authorization: Bearer `' schemas: CallbackBookingQuota: type: object properties: id: type: string format: uuid example: "27d74cc7-7fa3-f011-bbd3-000d3a384b51" time_slot: type: string example: "9:30am - 10am" day: type: string example: "Thursday 30 April" start_at: type: string format: date-time example: "2026-04-30T08:30:00Z" end_at: type: string format: date-time example: "2026-04-30T09:00:00Z" number_of_bookings: type: integer format: int32 example: 0 quota: type: integer format: int32 example: 20 is_available: type: boolean example: true required: - id - time_slot - day - start_at - end_at - number_of_bookings - quota - is_available Country: type: object properties: id: type: string format: uuid example: "123e4567-e89b-12d3-a456-426614174000" value: type: string example: "United Kingdom" iso_code: type: string example: "GB" required: - id - value - iso_code PickListItem: type: object properties: id: type: integer format: int32 example: 222750000 value: type: string example: "Example value" required: - id - value TeachingSubject: type: object properties: id: type: string format: uuid example: "123e4567-e89b-12d3-a456-426614174000" value: type: string example: "Chemistry" PrivacyPolicy: type: object properties: id: type: string format: uuid example: "123e4567-e89b-12d3-a456-426614174000" text: type: string example: "This is a demo privacy policy for testing purposes." created_at: type: string format: date-time example: "2026-04-30T09:36:47.357Z" required: - id - text - created_at SchoolsExperienceSignUp: type: object properties: email: type: string example: "johndoe@example.com" first_name: type: string example: "John" last_name: type: string example: "Doe" preferred_teaching_subject_id: type: string example: "6b793433-cd1f-e911-a979-000d3a20838a" secondary_preferred_teaching_subject_id: type: string example: "822655a1-2afa-e811-a981-000d3a276620" address_line1: type: string example: "123 Main St" address_line2: type: string example: "Apt 4B" address_line3: type: string example: "Little Whinging" address_city: type: string example: "London" address_state_or_province: type: string example: "London" address_postcode: type: string example: "SW1A 1AA" telephone: type: string example: "01234567890" has_dbs_certificate: type: boolean example: true dbs_certificate_issued_at: type: string example: "2024-01-15" qualification_id: type: string example: "qual-1" degree_status_id: type: int32 example: 222750000 degree_type_id: type: int32 example: 222750002 degree_subject: type: string example: "Mathematics" uk_degree_grade_id: type: int32 example: 222750002 candidate_id: type: string example: "candidate-1" creation_channel_source_id: type: string example: "source-1" creation_channel_service_id: type: string example: "service-1" creation_channel_activity_id: type: string example: "activity-1" accepted_policy_id: type: string example: "4872c8ed-0229-f111-8342-7c1e5285e3ab" required: - email - first_name - last_name - preferred_teaching_subject_id - address_line1 - address_city - address_state_or_province - address_postcode - telephone - has_dbs_certificate - accepted_policy_id TeachingEventBuilding: type: object properties: id: type: string format: uuid example: "3290fb7f-93b4-eb11-8236-000d3a26ba1b" venue: type: string example: "The Open University in Wales" address_line1: type: string example: "Custom House Street" address_line2: type: string address_line3: type: string address_city: type: string example: "Cardiff" address_postcode: type: string example: "CF10 1AP" image_url: type: string required: - id - venue TeachingEvent: type: object properties: id: type: string format: uuid example: "123e4567-e89b-12d3-a456-426614174000" type_id: type: integer format: int32 example: 222750000 status_id: type: integer format: int32 example: 222750001 region_id: type: integer format: int32 example: 222750002 readable_id: type: string example: "12345" web_feed_id: type: string description: If set, the API will accept new attendees for this event (an external sign up should be used if this value is nil). example: "ABCDE" is_online: type: boolean example: false name: type: string example: "Get into Teaching - London" summary: type: string example: "An event for those interested in teaching." message: type: string description: Used to push miscellaneous messages to users (e.g. if an event is close to being booked out). example: "Limited spaces remaining" description: type: string example: "A full description of the event." video_url: type: string example: "https://www.youtube.com/watch?v=example" scribble_id: type: string example: "scribble-123" provider_website_url: type: string example: "https://www.example.com" provider_target_audience: type: string example: "Aspiring teachers" provider_organiser: type: string example: "Jane Smith" provider_contact_email: type: string format: email example: "jane.smith@example.com" start_at: type: string format: date-time example: "2026-07-15T10:00:00Z" end_at: type: string format: date-time example: "2026-07-15T16:00:00Z" providers_list: type: string example: "Provider A, Provider B" building: $ref: "#/components/schemas/TeachingEventBuilding" is_virtual: type: boolean readOnly: true example: false accessibility_options: type: array items: type: integer format: int32 example: [222750000, 222750001] is_in_person: type: boolean readOnly: true example: true required: - readable_id - name - type_id - status_id - is_online - start_at - end_at TeachingEventSearchRequest: type: object properties: postcode: type: string description: Postcode to center search around. example: "SW1A 1AA" radius: type: integer format: int32 description: Radius in miles to search around the postcode. example: 10 type_ids: type: array items: type: integer format: int32 description: Filter by teaching event type IDs. example: [222750000, 222750001] online: type: boolean description: Set to true for online events, false for in-person events. example: false start_after: type: string format: date-time description: Filter to events starting after this date. example: "2026-07-01T00:00:00Z" start_before: type: string format: date-time description: Filter to events starting before this date. example: "2026-08-01T00:00:00Z" status_ids: type: array items: type: integer format: int32 description: Filter by event status IDs. example: [222750001] accessibility_options: type: array items: type: integer format: int32 description: Filter by accessibility option IDs. example: [222750000] quantity: type: integer format: int32 description: Maximum number of results to return. example: 10 TeacherTrainingAdviserSignUp: type: object properties: email: type: string example: "johndoe@example.com" first_name: type: string example: "John" last_name: type: string example: "Doe" date_of_birth: type: string format: date example: "2000-01-01" address_telephone: type: string example: "07735 111111" address_postcode: type: string example: " BN1 1AA" country_id: type: string format: uuid example: "38ce2d0f-0b1f-ee11-9967-6045bd8c5762" degree_subject: type: string example: "Mathematics" uk_degree_grade_id: type: integer format: int32 example: 222750001 degree_status_id: type: integer format: int32 example: 222750000 degree_type_id: type: integer format: int32 example: 222750000 has_gcse_maths_and_english_id: type: integer format: int32 example: 222750000 planning_to_retake_gcse_maths_and_english_id: type: integer format: int32 example: 222750001 has_gcse_science_id: type: integer format: int32 example: 222750000 planning_to_retake_gcse_science_id: type: integer format: int32 example: 222750001 preferred_teaching_subject_id: type: string format: uuid example: "b02655a1-2afa-e811-a981-000d3a276620" preferred_education_phase_id: type: integer format: int32 example: 222750000 initial_teacher_training_year_id: type: integer format: int32 example: 222750001 accepted_policy_id: type: string format: uuid example: "4872c8ed-0229-f111-8342-7c1e5285e3ab" type_id: type: integer format: int32 example: 222750000 channel_id: type: integer format: int32 example: 222750049 candidate_id: type: string format: uuid example: "d85a2f0b-290f-4931-98e2-e7d817ac38f3" adviser_status_id: type: integer format: int32 example: 222750000 qualification_id: type: string format: uuid example: "13da3277-c8ba-4b64-a79e-b0a3960c26be" creation_channel_source_id: type: integer format: int32 example: 222750000 creation_channel_service_id: type: integer format: int32 example: 222750010 creation_channel_activity_id: type: integer format: int32 example: 222750017 subject_taught_id: type: string format: uuid example: "b02655a1-2afa-e811-a981-000d3a276620" past_teaching_position_id: type: string format: uuid example: "13da3277-c8ba-4b64-a79e-b0a3960c26be" stage_taught_id: type: integer format: int32 example: 222750000 degree_country: type: string format: uuid example: "72f5c2e6-74f9-e811-a97a-000d3a2760f2" phone_call_scheduled_at: type: string format: date-time example: "2025-06-01T10:00:00Z" teacher_id: type: string example: "1234567" situation: type: integer format: int32 example: 222750000 citizenship: type: integer format: int32 example: 222750000 visa_status: type: integer format: int32 example: 222750000 location: type: integer format: int32 example: 222750000 graduation_year: type: integer format: int32 example: 2028 inferred_graduation_date: type: string format: date example: "2000-01-01" can_subscribe_to_teacher_training_adviser: type: boolean example: false assignment_status_id: type: int32 example: 1234567 required: - first_name - last_name - email - date_of_birth - accepted_policy_id - country_id - type_id DegreeStatusResponse: type: object properties: degree_status_id: type: integer format: int32 example: 222750000 required: - degree_status_Id MailingListAddMember: type: object properties: candidate_id: type: string format: uuid example: "d85a2f0b-290f-4931-98e2-e7d817ac38f3" qualification_id: type: string format: uuid example: "13da3277-c8ba-4b64-a79e-b0a3960c26be" accepted_policy_id: type: string format: uuid example: "4872c8ed-0229-f111-8342-7c1e5285e3ab" consideration_journey_stage_id: type: integer format: int32 example: 222750000 preferred_teaching_subject_id: type: string format: uuid example: "b02655a1-2afa-e811-a981-000d3a276620" email: type: string example: "johndoe@example.com" first_name: type: string example: "John" last_name: type: string example: "Doe" address_postcode: type: string example: "BN1 1AA" degree_status_id: type: integer format: int32 example: 222750000 graduation_year: type: integer format: int32 example: 2028 welcome_guide_variant: type: string example: "A" channel_id: type: integer format: int32 example: 222750049 creation_channel_source_id: type: integer format: int32 example: 222750000 creation_channel_service_id: type: integer format: int32 example: 222750010 creation_channel_activity_id: type: integer format: int32 example: 222750017 situation: type: integer format: int32 example: 222750000 citizenship: type: integer format: int32 example: 222750000 visa_status: type: integer format: int32 example: 222750000 location: type: integer format: int32 example: 222750000 already_subscribed_to_events: type: boolean example: false already_subscribed_to_mailing_list: type: boolean example: false already_subscribed_to_teacher_training_adviser: type: boolean example: false inferred_graduation_date: type: string example: "2025-01-01" required: - email - first_name - last_name - accepted_policy_id - consideration_journey_stage_id - preferred_teaching_subject_id ExistingCandidateRequest: type: object properties: email: type: string format: email example: "johndoe@example.com" first_name: type: string example: "John" last_name: type: string example: "Doe" date_of_birth: type: string format: date-time example: "2000-01-01" reference: type: string example: "ABC123" required: - email CandidateSchoolExperience: type: object properties: school_urn: type: string example: "123456" duration_of_placement_in_days: type: integer format: int32 example: 5 date_of_school_experience: type: string example: "2026-09-15" teaching_subject_id: type: string example: "6b793433-cd1f-e911-a979-000d3a20838a" notes: type: string example: "Student showed great interest in mathematics." school_name: type: string example: "Example High School" status: type: integer format: int32 example: 222750000 required: - school_urn GetIntoTeachingCallback: type: object properties: candidate_id: type: string format: uuid description: The candidate CRM identifier (optional). example: "d85a2f0b-290f-4931-98e2-e7d817ac38f3" accepted_policy_id: type: string format: uuid description: The privacy policy identifier accepted by the candidate. example: "4872c8ed-0229-f111-8342-7c1e5285e3ab" email: type: string description: The candidate email address. example: "johndoe@example.com" first_name: type: string description: The candidate first name. example: "John" last_name: type: string description: The candidate last name. example: "Doe" address_telephone: type: string description: The candidate telephone number. example: "07735 111111" phone_call_scheduled_at: type: string format: date-time description: The scheduled date and time for the callback. example: "2026-06-16T14:00:00Z" talking_points: type: string description: Notes on what the candidate would like to discuss. example: "I would like to discuss teaching as a career." creation_channel_source_id: type: integer format: int32 description: The source of the creation channel. example: 222750000 creation_channel_service_id: type: integer format: int32 description: The service of the creation channel. example: 222750010 creation_channel_activity_id: type: integer format: int32 description: The activity of the creation channel. example: 222750017 default_contact_creation_channel: type: integer format: int32 description: The default contact creation channel. example: 222750027 default_creation_channel_source_id: type: integer format: int32 description: The default creation channel source. example: 222750003 default_creation_channel_service_id: type: integer format: int32 description: The default creation channel service. example: 222750010 default_creation_channel_activity_id: type: integer format: int32 description: The default creation channel activity. example: 222750017 required: - email - first_name - last_name - address_telephone - phone_call_scheduled_at - talking_points - accepted_policy_id MappingInfo: type: object properties: class: type: string description: The entity class name. example: "Candidate" logical_name: type: string description: The Dynamics 365 logical name. example: "contact" fields: type: object description: The field mappings between the API model and the CRM entity. additionalProperties: type: object additionalProperties: type: string example: first_name: "dfe_Firstname" last_name: "dfe_Lastname" email: "emailaddress1" relationships: type: object description: The relationship mappings between the API model and the CRM entity. additionalProperties: type: object additionalProperties: type: string example: preferred_teaching_subject_id: "dfe_PreferredTeachingSubjectId" HealthCheckResponse: type: object properties: git_commit_sha: type: string description: The Git commit SHA of the deployed version. example: "abc123def456" environment: type: string description: The deployment environment. example: "production" database: type: string description: The database connection status. example: "ok" hangfire: type: string description: The Hangfire job server status. example: "ok" crm: type: string description: The CRM connection status. example: "ok" redis: type: string description: The Redis connection status. example: "ok" notify: type: string description: The GOV.UK Notify service status. example: "ok" status: type: string description: The overall health status. example: "healthy" ProblemDetails: type: object properties: type: type: string description: A URI reference that identifies the problem type. example: "https://tools.ietf.org/html/rfc7231#section-6.5.1" title: type: string description: A short, human-readable summary of the problem. example: "Bad Request" status: type: integer format: int32 description: The HTTP status code. example: 400 detail: type: string description: A human-readable explanation of the problem. example: "The request was invalid." instance: type: string description: A URI reference that identifies the specific occurrence. example: "/api/teaching_events/search" ExchangeStatus: type: string enum: - Valid - Invalid - Expired - AlreadyExchanged description: The status of the magic link token exchange. responses: Unauthorized: description: unauthorized content: application/json: example: errors: - error: Unauthorized message: Please provide a valid authentication token servers: - url: http://localhost:3000 - url: https://get-into-teaching-interface-api-qa.test.teacherservices.cloud