ClickCease

Info

GET
https://api.thenextleg.io/v2/info

Retrieve the fast hours and other information on your account.

Request Body

ref (optional)

You can optionally pass ref in your command, that will be returned in the webhook response.

webhookOverride (optional)

You can optionally pass webhookOverride that will route your request to a different webhook.

Please note that if this is not configured correctly, you will not receive any response. If an image creation cannot be mapped back to it's original request, the webhook body will be routed to the default webhook.

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 var axios = require('axios'); var data = JSON.stringify({ "ref": "", "webhookOverride": "" }); var config = { method: 'get', url: 'https://api.thenextleg.io/v2/info', headers: { 'Authorization': 'Bearer <your-token>', 'Content-Type': 'application/json' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });

HTTP Response

200Success

Your response will return a messageId. Store this somewhere so you can match it with what's received in your webhook.

0 1 2 3 4 { "success": true, "messageId": "your-message-id", "createdAt": "2023-04-04T13:07:01.927Z" }

New! Get your progress and retrieve a Message using GET

After receiving your messageId you can use the GET /v2/message/<messageId> in order to retrieve your progress and image.

See the GET /v2/message/<messageId> docs for more information.

Webhook URL Response

Your webhook URL will receive a response with the following:

  • originatingMessageId - The request ID from your original request
  • content The information in JSON
  • type info
0 1 2 3 4 5 6 7 8 9 10 { "createdAt": "2023-04-04T13:07:01.927Z", "originatingMessageId": "your-message-id", "content":{ "Fast Time Remaining": "12.06/15.0 hours (80.37%)", "Job Mode": "Fast", }, "type": "info" "ref": "", "responseAt": "2023-04-04T13:06:01.927Z" }
femme, a beautiful torso girl with big cute chest with short skirt, starry colorful hair, thigh gaps, contrast, smirk, belly, thighs high, show abs, contrast, long render, pink, blue and white, simple background, gauche art, wes anderson, artstation masterpiece,painting by Dao Trong Le
femme, a beautiful torso girl with big cute chest with short skirt, starry colorful hair, thigh gaps, contrast, smirk, belly, thighs high, show abs, contrast, long render, pink, blue and white, simple background, gauche art, wes anderson, artstation masterpiece,painting by Dao Trong Le