Applicationstatus data model

Updated:

View field support, webhooks, and list parameters for each integration on the Supported Integrations page.

FieldTypeRequiredDescription
idstringNo
job_idstringNoThe ID of the job this status/stage belongs to, when the provider scopes statuses per job.
statusenumNoValues: NEW, REVIEWING, SCREENING, SUBMITTED, FIRST_INTERVIEW, SECOND_INTERVIEW, THIRD_INTERVIEW, BACKGROUND_CHECK, OFFERED, ACCEPTED, HIRED, REJECTED, DECLINED, WITHDRAWN
original_statusstringNo
descriptionstringNo
metadataAtsMetadata[]No
metadata[].idstringNoThe ID of the custom field definition (from the metadata/metadata endpoint).
metadata[].slugstringNoThe integration's API name (key) of an existing custom field. List valid slugs for this object with the metadata/metadata endpoint; unknown slugs are rejected by the integration.
metadata[].valueobjectNoThe field's value, typed by format: DATE as ISO-8601 (YYYY-MM-DD, or YYYY-MM-DDTHH:MM:SSZ for date-times); NUMBER, PRICE and CURRENCY as a number; BOOLEAN and YES_NO as true/false; MULTIPLE_SELECT as an array of option values; otherwise a string.
metadata[].namespacestringNo
metadata[].formatenumNoThe data type of the custom field, which determines how value is formatted. Values: TEXT, NUMBER, DATE, BOOLEAN, FILE, TEXTAREA, SINGLE_SELECT, MULTIPLE_SELECT, MEASUREMENT, PRICE, YES_NO, CURRENCY, URL
metadata[].extra_dataobjectNo

TypeScript

TypeScript
export type AtsStatus = {
	id?: string;
	job_id?: string; // The ID of the job this status/stage belongs to, when the provider scopes statuses per job.
	status?: 'NEW' | 'REVIEWING' | 'SCREENING' | 'SUBMITTED' | 'FIRST_INTERVIEW' | 'SECOND_INTERVIEW' | 'THIRD_INTERVIEW' | 'BACKGROUND_CHECK' | 'OFFERED' | 'ACCEPTED' | 'HIRED' | 'REJECTED' | 'DECLINED' | 'WITHDRAWN';
	original_status?: string;
	description?: string;
	metadata?: [];
	raw?: any;
} 

Zod

Zod
import { z } from 'zod';

export const ZodAtsStatus = z.object({
	id: z.string().optional(),
	job_id: z.string().optional().describe("The ID of the job this status/stage belongs to, when the provider scopes statuses per job."),
	status: z.enum("NEW", "REVIEWING", "SCREENING", "SUBMITTED", "FIRST_INTERVIEW", "SECOND_INTERVIEW", "THIRD_INTERVIEW", "BACKGROUND_CHECK", "OFFERED", "ACCEPTED", "HIRED", "REJECTED", "DECLINED", "WITHDRAWN").optional(),
	original_status: z.string().optional(),
	description: z.string().optional(),
	metadata: z.array().optional(),

});

Python

Python
import dataclasses

@dataclasses.dataclass
class AtsStatusStatus(str, Enum):
	NEW = 'NEW'
	REVIEWING = 'REVIEWING'
	SCREENING = 'SCREENING'
	SUBMITTED = 'SUBMITTED'
	FIRST_INTERVIEW = 'FIRST_INTERVIEW'
	SECOND_INTERVIEW = 'SECOND_INTERVIEW'
	THIRD_INTERVIEW = 'THIRD_INTERVIEW'
	BACKGROUND_CHECK = 'BACKGROUND_CHECK'
	OFFERED = 'OFFERED'
	ACCEPTED = 'ACCEPTED'
	HIRED = 'HIRED'
	REJECTED = 'REJECTED'
	DECLINED = 'DECLINED'
	WITHDRAWN = 'WITHDRAWN'

@dataclasses.dataclass
class AtsStatus:
	id: Optional[str]
	"""The ID of the job this status/stage belongs to, when the provider scopes statuses per job."""
	job_id: Optional[str]
	status: Optional[AtsStatusStatus]
	original_status: Optional[str]
	description: Optional[str]
	metadata: Optional[PropertyAtsStatusMetadata]
Are we missing anything? Let us know
Was this page helpful?