Integrate Public Endpoints

View as Markdown
# Integrate Public Endpoints After selecting endpoints from `/v1/search`, send them to `/v1/integrate` along with the task you want to accomplish. It returns a **task brief** with the information and steps needed to call the selected endpoints. ## Request `POST /v1/integrate` ```json { "task": "Build an app to post current weather to slack", "resources": [ { "id": "1446534-36e04f24-1a4e-4546-83c4-59049ae23f1b", "type": "endpoint" }, { "id": "1037136-ac3a9a57-549d-4b73-b9fe-228aa65f75ab", "type": "endpoint" } ] } ``` - `task` — what you want to accomplish (max 512 characters). - `resources` — the endpoints to integrate; each is an `id` from `/v1/search` plus its `type` (the result's `resourceType`). Both fields are required, and every `resources` entry needs `id` and `type` This call takes no query parameters. ## Response The response contains one `data` entry with a `taskBrief`. The brief includes authentication requirements, base URLs, request steps, parameters, expected responses, dependencies between steps, and important considerations. The task brief uses the selected endpoints' schemas and any shared variables, authentication settings, and descriptions defined by their parent APIs. ## Errors `400` invalid input, `404` an `id` could not be resolved, `429` rate limited, `500` server error.

Request

This endpoint expects an object.
taskstringRequiredformat: "\S"1-512 characters
resourceslist of objectsRequired

Response

Successful Response
datalist of objectsOptional

Errors

400
Bad Request Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error