Base path now includes App Instance ID The 'base path' for API v4 now includes the App Instance ID (the same as the API username used in authentication).
Base path in API v1:
Base path in API v4:
/api/v1/
/api/v4/backend-deployment-id/
Use '/objects' to access objects Accessing objects is now namespaced under '/objects' in the URL:
The 'datamodel' and 'oplog' API functions no longer have underscores in their names:
Getting the Data Model in API v1:
Getting the Data Model in API v4:
/api/v1/_datamodel.json
/api/v4/backend-deployment-id/datamodel.json
Accessing the Oplog in API v1:
Accessing the Oplog in API v4:
/api/v1/_oplog.json
/api/v4/backend-deployment-id/oplog.json
2. Response Data Format for Retrieving Multiple Objects
When retrieving multiple objects, the structure of the JSON data returned now namespaces objects underneath an 'objects' key, and metadata such as 'count' of the number of objects in the response, as well as the total number of objects in the collection is also returned:
3. Partial Updates to Objects Should Now Use PATCH Method
In API v1, using the PUT HTTP request method would perform a partial update on an object (e.g. only updating a selected set of the object's fields). In API v4, PATCH must now be used for partial updates.
Failure to change the HTTP request method for partial updates to PATCH will result in data loss!
Partial update to an object in API v1:
PUT https://run-testing-us.journeyapps.com/api/v4/533bda53027894f69b001055/tasks/198c990e-f1bf-11e1-8d7d-001cc01904e3.jsontask[status]=1
Whereas in API v1, using the PUT HTTP request method will perform a partial update on an object, in API v4, the PUT method will replace the object completely. In other words, fields that are not present (in the object payload provided) will be cleared.
Replace object in API v1:
Not supported in API v1.
Replace object in API v4:
PUT https://run-testing-us.journeyapps.com/api/v4/533bda53027894f69b001055/objects/tasks/198c990e-f1bf-11e1-8d7d-001cc01904e3.jsontask[status]=1
5. Updated Field Representation for Choice Data Types
"Choice" data types, i.e. single-choice, single-choice-integer, multiple-choice and multiple-choice-integer now return now the value/key and the display name of the selected option(s):
6. Changes to Photos and Signatures Response Data Format
In API v4, the response data format for photos and signatures include various changes:
Photos and signatures are no longer included in a separate display_attachments field — they are now directly part of the object's fields in the response data.
URLs for photos and attachments are now absolute URLs, no longer relative URLs
A state field now indicates the availability of the image — pending or uploaded.
Whereas API v1 supports XML and JSON response formats, API v4 only supports JSON.
9. Structured Error Responses
API error responses in API v4 are now more structured, with specific error types:
{"type":"INVALID_VALUE","title":"Invalid value specified.","detail":"Invalid option \"test\" for field 'status'.","see":"https://resources.journeyapps.com/v4/api/errors/INVALID_VALUE"}