- Introduction
- System Design
- Get Started
- My Account
- API Documentation
- Generate ImagePOST
- Get ProgressGET
- UpscalePOST
- VariationPOST
- ZoomPOST
- PanPOST
- RerollPOST
- Make SquarePOST
- Cancel JobPOST
- InpaintingPOST
- Image to Text (describe)POST
- Image to ImagePOST
- Face SwapPOST
- BlendPOST
- HistoryGET
- Generate Image BoostPOST
- Button BoostPOST
- Prompt CheckPOST
- Account InfoGET
- Generate Image - Flux ModelPOST
- Remove BackgroundPOST
- FLUX API Documentation
- DIY Plan Endpoints
- Guide
- HowTos
- Web App
Toggle Linked Discord Token
PUT
https://api.imaginepro.ai/api/v1/discord/token/{id}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
required
Example:
123
Body Params application/json
isActive
boolean
required
Example
{
"isActive": true
}
Request 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 'https://api.imaginepro.ai/api/v1/discord/token/123' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
The list of linked Discord tokens.
array of:
id
number
required
token
string
required
channelId
string
required
serverId
string
required
isActive
boolean
required
status
enum<string>
required
Allowed values:
FASTRELAXVERIFYINGBANNED
info
object
required
jobMode
string
required
runningJobs
string
required
relaxedUsuage
string
required
subscription
string
required
lifetimeUsage
string
required
queuedJobsFast
string
required
visibilityMode
string
required
queuedJobsRelax
string
required
fastTimeRemaining
string
required
concurrency
number
required
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-12-09 07:28:46