Skip to main content

Input and Output Schema

The Inputs and Outputs of the Data Contract section provide information on the input and output data for your agent’s API. This includes the data types and descriptions of each field. You can use this information to understand how to structure your requests and responses when calling your agent’s API. Input and output schemas will be a JSON object. The exact structure depends on your agent, but an example can be found below: agent-schemas

Input Schema Example

This schema indicates that the input to the agent’s API should be a JSON object with a single field, content, which is a string containing the text to be processed. You can find the API endpoint and a link to the REST API docs in the Entrypoints section as well.

Output Schema Example

This schema indicates that the output from the agent’s API will be a JSON object with two fields: redactedText, which is a string containing the text with PII redacted, and redactedEntities, which is an array of strings listing the entities that were redacted. You can find the API endpoint and a link to the REST API docs in the Entrypoints section as well.
The input and output schemas will differ depending on your agent.

Get started with the API

Now that you understand the input and output schema, you can start using the API for your agent.
Learn how to get started with the API in the Using the API section.