Agent Licenses
Create a license.
Changed onCreates a new access license for an agent with specified permissions and optional expiration. Use this to grant controlled access to external users or systems.
post/api/v1/projects/{projectId}/licenses
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScripthttps://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/licenses/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
The unique identifier of the agent (formerly known as project).
Request body
Example request
{
"name": "My License"
}Response
Agent license
Example response
{
"status": "success",
"data": {
"license": {
"name": "My License",
"key": "123e4567-e89b-12d3-a456-426614174000",
"project_id": 7,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00"
},
"licenseKey": "123e4567-e89b-12d3-a456-426614174000"
}
}Changes
- warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - info
added the non-success response with the status
- warning
- info
endpoint added
- info