Create User Journey
Create a User Journey
Request body
Example request
{
"transition_type": "pre_offer",
"user_id": "69ae0e64b02bfe73a44ca479",
"state": "approved",
"expiration_date": "2026-01-01",
"office_location_id": "69ae0e64b02bfe73a44ca479",
"custom_fields": {
"key1": "Hello",
"key2": "World"
},
"documents": [
{
"document_type": "offer_letter",
"document_number": "1234",
"document_title": "Offer Letter",
"document_description": "Offer Letter to the Joe",
"attachments": [
{
"file_name": "abc.pdf",
"file_content_base64": "WW91J3JlIGEgY3VyaW91cyBmZWxsb3cgOy0p"
}
]
}
]
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"id": "69ae0e64b02bfe73a44ca479",
"journey_id": "69ae0e64b02bfe73a44ca479",
"user_id": "69ae0e64b02bfe73a44ca479",
"transition_type": "pre_offer",
"state": "approved",
"created_at": "2026-01-01",
"expiration_date": "2026-01-01",
"office_location": {
"id": "69ae0e64b02bfe73a44ca479",
"external_ids": {
"workday": "LOCATION-3-69"
},
"address1": "123 Main St",
"address2": "Suite 200",
"address3": "Building B",
"city": "New York",
"state": "NY",
"region": "Northeast",
"country": "USA",
"postal_code": "10001",
"time_zone": "NZT",
"latitude": 3.12332,
"longitude": 3.12332
},
"custom_field_values": [
{
"id": "1234",
"value": "custom field value",
"name": "custom field name",
"key": "1234"
}
]
}Changes
Changed in 6 of the 19 revisions of this API.145534
- ●
added the new
voidedenum value to thestateresponse property for the response status201response-property-enum-value-added
- ○
added the new
voidedenum value to the request propertystaterequest-property-enum-value-added
- ●
- ○
added
Models.OfficeLocationto theoffice_locationresponse propertyanyOflist for the response status201response-property-any-of-added
- ○
removed
OfficeLocationfrom theoffice_locationresponse propertyanyOflist for the response status201response-property-any-of-removed
This revision also has 26 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
request property
statewas restricted to a list of enum valuesrequest-property-became-enum
- ▲
request property
transition_typewas restricted to a list of enum valuesrequest-property-became-enum
- ▲
the
custom_fieldsrequest property type/format changed from/toobject/request-property-type-changed
- ▲
the
documents/items/attachments/items/file_content_base64request property type/format changed fromstring/tostring/Base64request-property-type-changed
- ▲
the
office_location_idrequest property type/format changed fromobject/to/request-property-type-changed
- ▲
the
staterequest property type/format changed from/tostring/request-property-type-changed
- ▲
the
user_idrequest property type/format changed fromstring/to/request-property-type-changed
- ▲
added 'unevaluatedProperties' constraint to the request property
custom_fieldsrequest-property-unevaluated-properties-added
- ▲
the
custom_field_valuesresponse's property type/format changed from/toarray/for status201response-property-type-changed
- ▲
the
office_locationresponse's property type/format changed fromobject/to/for status201response-property-type-changed
- ▲
the
stateresponse's property type/format changed from/tostring/for status201response-property-type-changed
- ▲
removed the required property
office_location/external_idsfrom the response with the201statusresponse-required-property-removed
- ▲
removed the required property
office_location/idfrom the response with the201statusresponse-required-property-removed
- ●
removed
CustomFieldsValueObjectfrom thecustom_fieldsrequest propertyallOflistrequest-property-all-of-removed
- ●
removed
UserJourneyStatefrom thestaterequest propertyallOflistrequest-property-all-of-removed
- ●
removed the request property
created_atrequest-property-removed
- ●
removed the request property
documents/items/attachments/items/responsesrequest-property-removed
- ●
removed the request property
documents/items/expiry_daterequest-property-removed
- ●
removed the request property
documents/items/issued_daterequest-property-removed
- ●
removed the request property
documents/items/issuerrequest-property-removed
- ●
removed the request property
documents/items/issuer_cityrequest-property-removed
- ●
removed the request property
documents/items/issuer_countryrequest-property-removed
- ●
removed the request property
documents/items/issuer_staterequest-property-removed
- ●
removed the request property
journey_idrequest-property-removed
- ●
removed the request property
office_location_id/address1request-property-removed
- ●
removed the request property
office_location_id/address2request-property-removed
- ●
removed the request property
office_location_id/address3request-property-removed
- ●
removed the request property
office_location_id/cityrequest-property-removed
- ●
removed the request property
office_location_id/countryrequest-property-removed
- ●
removed the request property
office_location_id/external_idsrequest-property-removed
- ●
removed the request property
office_location_id/idrequest-property-removed
- ●
removed the request property
office_location_id/latituderequest-property-removed
- ●
removed the request property
office_location_id/longituderequest-property-removed
- ●
removed the request property
office_location_id/postal_coderequest-property-removed
- ●
removed the request property
office_location_id/regionrequest-property-removed
- ●
removed the request property
office_location_id/staterequest-property-removed
- ●
removed the request property
office_location_id/time_zonerequest-property-removed
- ●
removed the request property
office_location_id/workdayrequest-property-removed
- ●
removed the optional property
office_location/address1from the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/address2from the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/address3from the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/cityfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/countryfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/latitudefrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/longitudefrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/postal_codefrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/regionfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/statefrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/time_zonefrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
office_location/workdayfrom the response with the201statusresponse-optional-property-removed
- ●
added the new
approvedenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
completedenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
declinedenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
draftenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
needs_attentionenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
offboardingenum value to thetransition_typeresponse property for the response status201response-property-enum-value-added
- ●
added the new
offerenum value to thetransition_typeresponse property for the response status201response-property-enum-value-added
- ●
added the new
onboardingenum value to thetransition_typeresponse property for the response status201response-property-enum-value-added
- ●
added the new
pending_approvalenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
post_offerenum value to thetransition_typeresponse property for the response status201response-property-enum-value-added
- ●
added the new
pre_offerenum value to thetransition_typeresponse property for the response status201response-property-enum-value-added
- ●
added the new
rejectedenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
rescindedenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
submittedenum value to thestateresponse property for the response status201response-property-enum-value-added
- ●
added the new
user_pendingenum value to thestateresponse property for the response status201response-property-enum-value-added
- ○
added the new optional request property
expiration_datenew-optional-request-property
- ○
added
UUIDsubschema #2to theoffice_location_idrequest propertyanyOflistrequest-property-any-of-added
- ○
added
UUIDsubschema #2to theuser_idrequest propertyanyOflistrequest-property-any-of-added
- ○
added the new
approvedenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
completedenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
declinedenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
draftenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
needs_attentionenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
offboardingenum value to the request propertytransition_typerequest-property-enum-value-added
- ○
added the new
offerenum value to the request propertytransition_typerequest-property-enum-value-added
- ○
added the new
onboardingenum value to the request propertytransition_typerequest-property-enum-value-added
- ○
added the new
pending_approvalenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
post_offerenum value to the request propertytransition_typerequest-property-enum-value-added
- ○
added the new
pre_offerenum value to the request propertytransition_typerequest-property-enum-value-added
- ○
added the new
rejectedenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
rescindedenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
submittedenum value to the request propertystaterequest-property-enum-value-added
- ○
added the new
user_pendingenum value to the request propertystaterequest-property-enum-value-added
- ○
removed
CustomFieldsValueObjectfrom thecustom_field_valuesresponse propertyallOflist for the response status201response-property-all-of-removed
- ○
removed
UserJourneyStatefrom thestateresponse propertyallOflist for the response status201response-property-all-of-removed
- ○
added
OfficeLocationsubschema #2to theoffice_locationresponse propertyanyOflist for the response status201response-property-any-of-added
- ○
the response property
created_atbecame required for the status201response-property-became-required
- ○
the response property
custom_field_valuesbecame required for the status201response-property-became-required
- ○
the response property
office_locationbecame required for the status201response-property-became-required
- ○
the response property
statebecame required for the status201response-property-became-required
- ○
the response property
transition_typebecame required for the status201response-property-became-required
- ○
the response property
user_idbecame required for the status201response-property-became-required
- ○
added the required property
expiration_dateto the response with the201statusresponse-required-property-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ●
removed the request property
journey_typerequest-property-removed
- ●
removed the optional property
journey_typefrom the response with the201statusresponse-optional-property-removed
- ○
added the new optional request property
transition_typenew-optional-request-property
- ○
added the optional property
transition_typeto the response with the201statusresponse-optional-property-added
- ●
- ○
endpoint added
endpoint-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 68 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲