ClickCease

Reactions/Seed Retrieval

API Endpoint: $https://api.thenextleg.io/api
After receiving a response at your webhook URL from an imaginecommand, you can react with ✉️ to receive a seed back. Supported Reactions
  • ✉️ - Retrieve your seed

Request

Params

Supported Reactions
  • reaction ✉️
  • buttonMessageId - The `buttonMessageId` received in your Completed Response from a previous request.
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({ "reaction": "✉️", "buttonMessageId": "your-button-message-id" }); var config = { method: 'post', url: 'https://api.thenextleg.io/api', 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

Your response will return an initial messageId. The main purpose is to let you know your message has been received.

The response to the actual request (imagine or other) will be returned in your Webhook URL.

📘This is not an actual response to your original request. Your webhook URL will receive a message with a response to the original prompt.
0 1 2 3 4 { "success": true, "messageId": "your-message-id", "createdAt": "2023-04-04T13:07:01.927Z" }

Completed Response

Your webhook URL will receive a response with the following:

  • buttons - Which can be used in your next request invoke. If your slash command has produced an output that produces buttons/interactions, they will appear here
  • buttonRequestId - Which can be used in a Button Command in conjunction with a button
  • imageUrl - The URL for your image
  • originatingMessageId - The request ID from your original request
  • content - A string containing a response from the (Redacted Name) bot
  • seed - Your seed

🚧 Note: You should be aware that content will also return messages from (Redacted Name) including:

ALREADY_REQUESTED_UPSCALE
You've already requested an upscale for this image
BOT_TOOK_TOO_LONG_TO_PROCESS_YOUR_COMMAND
(Redacted Name) Bot took too long to process your command
APPEAL_ACCEPTED
Your appeal has been accepted
APPEAL_REJECTED
Your appeal has been rejected
BANNED_PROMPT
You can't use this prompt
BLOCKED
This message has been blocked
BUTTON_NOT_FOUND
Button not found
FAILED_TO_PROCESS_YOUR_COMMAND
(Redacted Name) failed to process your command
FAILED_TO_REQUEST
Failed to request
IMAGE_BLOCKED
This image has been blocked
INTERNAL_ERROR
(Redacted Name) had an internal error
INVALID_LINK
Invalid link
INVALID_PARAMETER
Invalid parameter
JOB_ACTION_RESTRICTED
Job action restricted
JOB_QUEUED
Job queued
MODERATION_OUTAGE
There is a content moderator outage
NO_FAST_HOURS
You've ran out of fast hours
PLEASE_SUBSCRIBE_TO_MJ_IN_YOUR_DASHBOARD
You're not subscribed to (Redacted Name)
QUEUE_FULL
Queue full
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 { "createdAt": { "_nanoseconds": 215000000, "_seconds": 1678840347 }, "buttons": [ "U1", "U2", "U3", "U4", "🔄", "V1", "V2", "V3", "V4" ], "seed": "123456", "imageUrl": "your-image-url", "buttonMessageId": "OtfxNzfMIKBPVE1aP4u4", "originatingMessageId": "your-message-id", "content": "your-original-prompt", "ref": "", "responseAt": "2023-04-04T13:06:01.927Z" }
The scene should be in spring, sunny and breezy. The sky is blue, the flowers are blooming, and the grass is green. In this scene, a man in a white shirt was standing in the flower field, holding a resume in his hand, with a confident and excited expression on his face. The characters are directly below the screen, occupying a small area of the screen. Both the foreground and the background are large expanses of flowers in many colors. The sun shines on him, creating a warm and bright atmosphere, and at the same time showing his expectation and courage for the future. The whole image should be full of vigor and vitality, making people feel the beauty and hope of spring. flat illustration style, simple colors, textured, board drawing, procreate, Karolis Strautniekas, Mads Berg, Illustration, Photoshop,
The scene should be in spring, sunny and breezy. The sky is blue, the flowers are blooming, and the grass is green. In this scene, a man in a white shirt was standing in the flower field, holding a resume in his hand, with a confident and excited expression on his face. The characters are directly below the screen, occupying a small area of the screen. Both the foreground and the background are large expanses of flowers in many colors. The sun shines on him, creating a warm and bright atmosphere, and at the same time showing his expectation and courage for the future. The whole image should be full of vigor and vitality, making people feel the beauty and hope of spring. flat illustration style, simple colors, textured, board drawing, procreate, Karolis Strautniekas, Mads Berg, Illustration, Photoshop,