POST
/
api
/
v1
/
external-functions

Use this endpoint to create new external functions. Required parameters include the external function’s name and the external function’s description.

After you create your agent, you can attach the external function to an agent.

To update the external functions see the Update External Function endpoint.

Authorizations

AUTHORIZATION
string
headerrequired

API key required for this endpoint. Use Bearer YOUR_SECRET_API_KEY. Get your key from https://play.ai/developers.

X-USER-ID
string
headerrequired

User ID required for this endpoint. Get it from https://play.ai/developers.

Headers

content-type
enum<string>
required
Available options:
application/json
accept
enum<string>
Available options:
application/json

Body

application/json
name
any
required
description
any
required
endpointUrl
any
required
method
any
required
parameters
any