Create a new agent by providing the required details.
This API enables you to create a new agent in your CloudAgent account.
To use this API with the help of a token, follow these steps:
- Generate the Token: Use the 'Generate Token' API to obtain an authentication token.
- Enter the Token ID: Navigate to the right section of this page, under the 'AUTHORIZATION' tab. Here, input the generated token ID.
- With the token entered, pass the below header and body parameters:
Rate Limit
This API permits up to 5 requests per minute.
Possible Responses
Success Response | "{""Status"": ""Success"", |
Passing Invalid Token Value | "{""status"": ""false"",""message"": ""Invalid Token"", |
Missing Token Value | {"status": "false","message": "Token Should Not be Null or Empty.","data": null} |
Missing apiKey key / Missing apiKey Value | "{""status"": ""false"",""message"": ""Api Key Should Not be Null or Empty."", |
Passing Invalid apiKey Value | {"status": "false","message": "Invalid User Details","data": null} |
Passing Invalid userName Value / Missing userName key / Missing userName Value | {"status": "false","message": "Invalid User Details","data": null} |
Passing Invalid agentId Value / Missing agentId key / Missing agentId Value / | "{ |
Passing Invalid agentName Value | "{""Status"": ""Fail"",""Message"": { |
Missing agentName Value | "{""status"": ""error"", |
Passing Invalid password Value | {"message": "Password length must be between 3 and 50 characters","status": "error"} |
Missing password Value | "{""message"": ""Password is required"", |
Passing Invalid email Value | "{""message"": ""Invalid email format"", |
Missing email key | {"message": "Email should not be null or empty","status": "error"} |
Missing email Value | {"message": "Email should not be null or empty","status": "error"} |
More than 5 requests per minute | "{""status"": ""error"", |
Passing spaces or commas in Agent Data field | {"message": "Agent data must be between 2 and 100 characters using only letters, numbers, and special characters like ., @, _, -","status": "error"} |
Passing invalid screenRecording. | {"message": "Invalid sipLocation", "status": "error"} |