ImaginePro Archive
  1. DIY Plan Endpoints
ImaginePro Archive
  • Introduction
  • System Design
  • Get Started
  • My Account
    • Credits
    • Generation Modes
  • API Documentation
    • Generate Image
      POST
    • Get Progress
      GET
    • Upscale
      POST
    • Prompt Check
      POST
    • Variation
      POST
    • Zoom
      POST
    • Pan
      POST
    • Image to Text (describe)
      POST
    • Image to Image
      POST
    • Face Swap
      POST
    • Blend
      POST
    • Inpainting
      POST
    • Reroll
      POST
    • Make Square
      POST
    • Cancel Job
      POST
    • History
      GET
    • Get Ban Words List
      GET
    • Update Ban Words List
      POST
    • Generate Image Boost
      POST
    • Button Boost
      POST
    • Get Message Trace
      GET
  • DIY Plan Endpoints
    • Queue Management
      • Count jobs in queue
      • Reboot the queue
      • Pause the queue
      • Resume the queue
    • Get Linked Discord Token Details
      GET
    • Toggle Linked Discord Token
      PUT
  • Guide
    • FAQ
    • Troubleshoot
  • HowTos
    • How to get Discord token, server and channel ID
    • How to use ImaginePro web app
    • How to make ImaginePro API request in Postman
    • How to use Midjourney V6
    • How to link your own Discord account
    • How to debug the ImaginePro web app
  • Web App
    • Credits
  1. DIY Plan Endpoints

Toggle Linked Discord Token

PUT
/api/v1/discord/token/{id}
The API only works for user with DIY plan, and have linked their Discord account.
The API will return the updated token details.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "isActive": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/v1/discord/token/123' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "isActive": "string"
}'

Responses

🟢200Success
application/json
Body

Example
[
    {
        "id": 198,
        "token": "MTE2OTc1Nzg5NjEwNDQ4NDkxOA.GRXmdc.YD02mkT1NkOGeDTJa8CT98m5QaC41EERSDFAS",
        "channelId": "1169758569336333381",
        "serverId": "1169758569336478123",
        "isActive": true,
        "status": "FAST",
        "info": {
            "jobMode": "",
            "runningJobs": "None",
            "relaxedUsage": "0 images",
            "subscription": "Basic (Active monthly, renews next on <t:1709417882>)",
            "lifetimeUsage": "674 images",
            "queuedJobsFast": "0",
            "visibilityMode": "Public",
            "queuedJobsRelax": "0",
            "fastTimeRemaining": "199.00/200.0 minutes (99.50%)"
        },
        "concurrency": 2
    }
]
Modified at 2024-11-22 02:12:32
Previous
Get Linked Discord Token Details
Next
FAQ
Built with