Generate a tool
**This endpoint is deprecated**
Generates code for an AI agent tool using a collection and request from the Public API Network. For more information, see [**Tool Generation Demo**](http://postman.com/explore/toolgen) in Postman's Public API Network.
### Important
- This endpoint has a rate limit of **300 calls every 3 hours**. This does not accrue Postbot usage.
- This endpoint only supports public Postman Collections and requests.
Authentication
x-api-keystring
API Key authentication via header
OR
Authorizationstring
A valid [SCIM API key](https://learning.postman.com/docs/administration/scim-provisioning/scim-provisioning-overview/#generating-scim-api-key) for calls to SCIM endpoints.
OR
AuthorizationBasic
Basic authentication of the form Basic <base64(username:password)>.
Request
This endpoint expects an object.
requestId
The public collection's request ID.
collectionId
The Public API Network collection's ID.
config
Information about the request.
Response
Successful Response
data
The generated response data.
Errors
400
Bad Request Error
429
Too Many Requests Error
500
Internal Server Error