Midjourney V8.2
Midjourney V8.2 through one model ID. Generate four images from text and image prompts, then vary or upscale one of them or reroll the set, or retexture, edit, blend and describe images.
- One model ID for every Midjourney operation.
actionpicks it and defaults togenerate; the buttons Midjourney shows under a result are actions too. - Asynchronous: the create call returns a task ID at once. A
fastgenerate usually finishes in 1 to 3 minutes; poll for up to 10 minutes. - A generate returns four images. A follow-up names your earlier task in
source_task_idand, where it picks an image, its position inindex(1 to 4). - Midjourney parameters such as
--ar,--s,--srefand--nogo inprompt. Version, speed, quality and draft are fields. - Priced per call by
speedandquality;upscaleanddescribehave one low flat price. A refused request and a failed task cost nothing. - Results are deleted after 7 days. Download the images you want to keep.
Opens this model in the API Explorer. Enter your BeatAPI API key to create a task: the call is real and is billed to your own balance.
Endpoint and authentication
POST https://api.beatapi.io/v1/images/tasks
Authorization
string · Required
Your BeatAPI API key, sent as Bearer <BEATAPI_API_KEY>. Create keys in the Dashboard. Keep keys on your server; never ship them in a browser or mobile app.
Send the body as JSON with Content-Type: application/json. Idempotency-Key is optional: send a unique value (at most 255 characters) per logical request and reuse it only to retry that exact body. Within 24 hours a retry with the same key and body returns the first response again with Idempotent-Replayed: true; the same key with a different body returns 409 idempotency_conflict. Responses other than 2xx are not stored, so a retry after a 400 or 402 runs again.
How a request works
- Create the task
POSTthe parameters below to the endpoint. A201means the task was accepted and its price reserved from your balance; the work runs in the background. Savedata.id. - Wait for it to finish Call
GET /v1/tasks/{task_id}and waitdata.poll_after_secondsbetween calls (5 s for images, 8 s for videos) untilstatusissucceededorfailed. Or register a webhook fortask.succeededandtask.failed; keep polling as the fallback, because a task stopped by the processing timeout sends no event. - Save the result On
succeeded, download everydata.output.media[].urland store the files you need; BeatAPI does not promise how long result URLs stay available. Onfailed, readdata.error_codeanddata.error_message: the reserved amount was returned to your balance, anddata.retryablesays whether sending the same request again can succeed.
Input modes
Request parameters
model
string · Required
The model to run.
Value: mj-v8.2
If the value is wrong
- Missing:
"model" is required - Unknown model ID:
"model" mj-v7 is not catalogued - A video model sent to this endpoint:
"model" seedance-2.5 is served by POST /v1/videos/tasks, not this endpoint
prompt
string · Optional
What to draw, as on midjourney.com: the description first, then any Midjourney parameters such as --ar 3:2 --s 250. For retexture and edit it describes the new look.
Length: 1–2048 characters
- Required for
generateunlessimagesholds two or more links, and forretextureandedit. Other actions do not take it. - For
generate, the text without links and--parameters is at most 1024 characters. - Parameters that the API sets by field, and those it does not support, are refused; see the parameter table further down.
If the value is wrong
- Left out on a generate with fewer than two images:
generate needs "prompt"; only two or more images may go without one - Left out on retexture or edit:
"prompt" is required for action retexture - Sent with an action that does not take it:
prompt is not used by action upscale; leave it out - Empty or longer than the limit:
"prompt" has an unsupported length - The text without links and parameters is too long:
the prompt's text (without links and --parameters) is at most 1024 characters - A version parameter:
remove --v from the prompt: the version is fixed at 8.2; leave it out - A speed parameter:
remove --fast from the prompt: set the speed field to fast instead - A decimal ratio:
--ar takes whole numbers, like 139:100 instead of 1.39:1 --qoutside 1 to 4:--q takes 1, 2, 3 or 4 (detail; 4 is the most detailed); for a bigger picture set quality hd
action
string · Optional · Default: generate
The operation to run. Each action takes only its own fields (see the input modes above); any other field is refused, so you never pay for a setting that had no effect.
Allowed values: generate, variation, upscale, reroll, retexture, edit, blend, describe
Default: generate
generatestarts afresh.variation,upscaleandrerollwork on a four-image result; an upscaled image takes no follow-up.retexture,edit,blendanddescribestart from your own images inimages.- Input is not case-sensitive; the documentation writes the lower-case form.
If the value is wrong
- A value not in the list:
"action" must be one of: [generate variation upscale reroll retexture edit blend describe] - A field the action does not take:
quality is not used by action retexture; leave it out
images
string[] · Optional
Your own images as public HTTPS links. For generate they are image prompts (1 to 5); retexture, edit and describe take exactly one; blend takes 2 to 5.
Items: 1–5
Each item is a public https:// URL. For a local file, upload it first with POST /v1/files and pass the returned data.url.
- Links must be public and download within a few seconds. Have a local file? Upload it with
POST /v1/filesand send the returned link. - For
edit, send a PNG and cut out (make transparent) the parts to change. An image without transparency, such as any JPEG, is still drawn and billed. - Follow-ups (
variation,upscale,reroll) work onsource_task_idand do not takeimages. - Positions in error messages are 0-based:
images[0]is the first link.
If the value is wrong
- Missing on retexture, edit, blend or describe:
"images" is required for action describe - Fewer than blend needs:
action blend needs at least 2 image(s) in "images" - More than one for describe, retexture or edit:
action describe takes at most 1 image(s) in "images" - More than five:
"images" accepts at most 5 items - Not an https:// link:
"images[0]" must be a public HTTPS URL
aspect_ratio
string · Optional
Shape of the image as width:height, for generate and blend.
Allowed values: 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9, 9:21, 5:4, 4:5, 2:1, 1:2
- A generate without it is drawn
1:1. blendtakes only1:1(its default),3:2or2:3.- For any other shape write
--ar W:Hwith whole numbers inprompt, for example--ar 7:4; it overrides this field.
If the value is wrong
- A value not in the list:
"aspect_ratio" must be one of: [1:1 4:3 3:4 3:2 2:3 16:9 9:16 21:9 9:21 5:4 4:5 2:1 1:2] - A blend with another shape:
"aspect_ratio" for blend is one of: 1:1, 3:2, 2:3
quality
string · Optional · Default: standard
hd draws about 2K instead of the standard size. It is set when you generate and cannot be added later.
Allowed values: standard, hd
Default: standard
- At
fast,hdcosts more; atrelaxit costs the same. upscalereturns the image at the pixel size it was drawn at; it does not enlarge it. Ask forhdon the first call when you want a bigger picture.- A follow-up runs at its source task’s quality. Leave the field out on a follow-up, or send the same value.
retexture,edit,blendanddescribedo not take it.
If the value is wrong
- A value not in the list:
"quality" must be one of: [standard hd] - Together with draft:
draft cannot be combined with quality hd - A follow-up asking for another quality than its source task:
source_task_id was made at quality hd and a follow-up runs the same; leave quality out
speed
string · Optional · Default: fast
fast (the default) usually finishes a generate in 1 to 3 minutes; relax takes 2 to 5 minutes and costs less.
Allowed values: fast, relax
Default: fast
- A follow-up runs at its source task’s speed and is billed at it. Leave the field out on a follow-up, or send the same value.
describedoes not take it.
If the value is wrong
- A value not in the list:
"speed" must be one of: [fast relax] - A follow-up asking for another speed than its source task:
source_task_id was made at speed relax and a follow-up runs the same; leave speed out
draft
boolean · Optional
For generate only. true returns 24 quick 512 px drafts at a generate’s price, to explore a prompt before rendering it in full.
- Works at either
speed; cannot be combined withqualityhd. - A draft takes no follow-up and its images cannot be picked. To render a prompt in full, send it again without
draft; write--seed Nin the draft’s prompt for a similar, not identical, composition.
If the value is wrong
- Not a boolean:
"draft" must be a boolean - A follow-up on a draft:
source_task_id is a draft, which takes no follow-up; send the prompt again without draft (add --seed N to keep a similar composition)
source_task_id
string · Optional
For a follow-up: the id of your own earlier Midjourney task that it works on. The task must have succeeded.
- Read
output.data.follow_upsof that task first: it lists the actions the result accepts. Any other follow-up is refused at no charge. - An upscaled image takes no follow-up. To vary it, send
variationwith thesource_task_idof its four-image result and the sameindex. - Results of
upscale,retexture,edit,describeand drafts take no follow-up.
If the value is wrong
- Not a task id:
"source_task_id" must be the id of one of your earlier tasks: "task_" followed by 32 letters or digits - Missing on a follow-up:
"source_task_id" is required for action upscale: the id of your own Midjourney task it works on - The source task is still running or failed:
source_task_id has not finished successfully; wait for it to succeed and try again - A task of another model:
source_task_id was made by seedream-5.5, not Midjourney; name one of your Midjourney tasks - A follow-up on an upscaled image:
an upscaled image takes no follow-up; to vary it, send action variation with source_task_id of its four-image result and the same index - A result of retexture, edit or describe:
source_task_id is the result of retexture, which takes no follow-up - The same image of the same result upscaled again:
that image of source_task_id was already upscaled in task_Up4Rk9Ns2Wq7Zx5Mc8Hv1Lb6Tj3Fd0Gy; use that task's result - An action that result does not list in follow_ups:
this result does not support action upscale; generate the image again and continue from the new result
index
integer · Optional
Which image of a four-image result to work on, 1 to 4. It is 1-based and counts output.media of the source task.
Range: 1–4
- Required for
upscaleandvariation. - Not used by
rerollor by actions withoutsource_task_id.
If the value is wrong
- Missing on upscale or variation:
"index" is required for action upscale - Not a whole number from 1 to 4:
"index" is outside its supported range
callback_url
string · Optional
An address to notify when this task succeeds or fails: a public HTTPS URL on the same scheme, host and port as one of your enabled webhook endpoints, which signs the delivery with its secret.
Length: ≤ 2048 characters
- Register the endpoint first with
POST /v1/webhooks. BeatAPI sendstask.succeededortask.failedwith the same body, headers and retries as an account webhook; an account endpoint subscribed to the event receives it too, and an address identical to that endpoint’s is notified once. - The callback stops when the signing endpoint is deleted, disabled or moved to another host.
If the value is wrong
- The value is not a string:
"callback_url" must be a string. - The address is longer than 2048 characters:
"callback_url" must be at most 2048 characters. - It is not a URL, or has no host or no
httporhttpsscheme:"callback_url" must be a valid https URL. - It uses
http, or points to a private or otherwise non-public address:"callback_url" must be a public HTTPS URL. - No enabled webhook endpoint has the same scheme, host and port:
"callback_url" must be on the host of one of your active webhook endpoints, whose secret signs it; register one with POST /v1/webhooks.
The gateway also checks these combinations before creating the task:
- action picks the operation and defaults to generate; each action takes only the fields listed for it here, and any other field is refused
- a refused request (HTTP 400) and a failed task are not charged
- generate: prompt (required unless images holds 2 or more links), optional images (1-5 public image links used as image prompts), aspect_ratio (1:1 when left out), quality, speed, draft; returns four images
- quality hd draws about 2K at generate time; it cannot be added later, so set it on the first call when you want a bigger picture
- variation: source_task_id of a four-image result and index (1-4); Midjourney’s V button for that image, returning four new images
- upscale: source_task_id of a four-image result and index (1-4); it picks that image and returns it alone at the same pixel size (it does not enlarge), and an upscaled image takes no follow-up
- reroll: source_task_id of a four-image result, no index; redraws the whole prompt as four new images
- retexture and edit: images (exactly 1) and prompt; retexture keeps the composition and restyles it by prompt; edit (beta) redraws the transparent areas of a PNG, so cut out the parts to change: an image without transparency (any JPEG) is still drawn and billed; both return four images, which take no follow-up
- blend: images (2-5) and optional aspect_ratio 1:1 (default), 3:2 or 2:3; it renders with Midjourney V7, so its look can differ from V8.2 images; describe: images (exactly 1), returns four prompts in output.data.prompts and no image
- index is 1-based and counts output.media of the source task; output.data.kind (grid, single or text) and output.data.follow_ups list what a finished task accepts (occasionally fewer, or none, when the task was served by an overflow route), and any other follow-up is refused at no charge; read it before planning a chain
- a follow-up runs at the source task’s speed and quality (leave both out, or send the same values) and is billed as a new image at those settings, except upscale and describe, which have one flat price
- a draft result takes no follow-up and its images cannot be selected: to render a prompt in full, send it again without draft (write —seed N in the draft’s prompt for a similar, not identical, composition)
- Midjourney parameters go in prompt as on midjourney.com: —ar W:H with whole numbers (overrides aspect_ratio), —s 0-1000, —c 0-100, —seed 0-4294967295, —exp 0-100, —q 1-4, —raw, —no, —tile, —weird 0-3000, —iw 0-3, —sref (links or codes) and —sw; for generate the text without links and parameters is at most 1024 characters
- set the version (8.2), speed, quality and draft by fields only: a prompt with —v, —niji, —fast, —relax, —turbo, —hd or —draft is refused, as are —oref, —cref, —stop, —p, —bs, —repeat, —edit, —stealth and —public, which this API does not support
- speed fast (default) usually takes 1-3 minutes, relax 2-5 minutes at a lower price, edit and retexture up to 5 minutes, upscale and describe seconds; poll for up to 10 minutes; quality hd costs more at fast and the same at relax; draft works at either speed, returns 24 quick 512 px images at a generate’s price and cannot be hd
- image links must be public and download within a few seconds; upload a local file with POST /v1/files and send its link; save the results you want to keep: images are deleted after 7 days
Actions at a glance
Every action is a new task on the same endpoint. output.data.kind of the result says what it is: grid (four images), single (one upscaled image) or text.
- A field the action does not take is refused, not ignored: a stray
indexon a generate would otherwise be paid for and have no effect. blendrenders with Midjourney V7, so its look can differ from V8.2 images.
Chaining follow-ups
A follow-up names one of your own finished Midjourney tasks in source_task_id. It works on a four-image result, and index picks one of its images: 1 is the first item of that task’s output.media, 4 the last.
variationwithindex: the V button, four new images close to that one.upscalewithindex: the U button, that image alone. Upscaling the same image of the same result again is refused and names the task that already holds it.reroll: four new images from the same prompt.
An upscaled image takes no follow-up; to vary it, send variation with its four-image result and the same index. Results of retexture, edit, describe and drafts take no follow-up either.
Before you plan a chain, read output.data.follow_ups of the task you want to continue: it lists exactly the actions that result accepts. A result can list fewer, or none, when it was made on a fallback line; any other follow-up is refused at no charge, and you can generate the image again and continue from the new result.
A follow-up runs at the speed and quality of its source task, and is billed at them. Leave speed and quality out, or send the same values; a different value is refused.
Speed, quality and drafts
editandretexturecan take up to 5 minutes;upscaleanddescribetake seconds. Poll for up to 10 minutes before you give up on a task.upscalepicks an image; it does not enlarge it. The upscaled image has the pixel size it was drawn at.
Midjourney parameters in the prompt
Write Midjourney’s own parameters at the end of prompt, as on midjourney.com. They are passed on as written.
- Set the version (8.2), speed, quality and draft by fields: a prompt with
--v,--niji,--fast,--relax,--turbo,--hdor--draftis refused. - Not supported by this API, and refused:
--oref,--cref,--stop,--p,--bs,--repeat,--edit,--stealth,--public. - For
generate, the text without links and parameters is at most 1024 characters.
Results and retention
Images are stored for 7 days and then deleted; download the ones you want to keep. describe stores no file: its four prompts are in output.data.prompts.
Image links you send must be public and download within a few seconds. A link that cannot be fetched fails the task, which is not charged.
Request examples
Generate four images
The default action. Midjourney parameters go at the end of the prompt.
Vary image 3
The V3 button: four new images close to the third image of the generate above.
Upscale image 2
The U2 button on the variation result: the second image alone, at the pixel size it was drawn at. It takes no follow-up.
Describe an image
Four prompts that would draw an image like yours, in output.data.prompts.
Image prompt and style reference at relax, in HD
A product image as image prompt, a style reference in the prompt; relax costs less and hd costs nothing extra there.
Blend two images
Merges the images into one picture, rendered with Midjourney V7. No prompt.
Responses
Create a task (201)
The task object. output is null until the task succeeds. Fields marked “while running” disappear once the task finishes.
Finished task
GET /v1/tasks/{task_id} returns HTTP 200 with status: "succeeded" and the result in data.output.
Output fields
Failed task
A failed task is still HTTP 200 on GET /v1/tasks/{task_id}: the failure is in the body. The reservation is returned in full, so nothing is charged.
Complete example
Create a task, wait for it with the server’s polling hint, and print the result URLs. Set BEATAPI_API_KEY in your environment and install requests.
Billing
- Each call is one task with one price, set by
speedandquality(table below). A generate, variation, reroll, retexture, edit, blend or draft costs one call at those settings, whatever the number of images it returns. - A follow-up is billed at its source task’s speed and quality.
upscaleanddescribehave one flat price at any speed. - The price is reserved when the task is created. A request refused with HTTP 400 costs nothing, and a failed task returns the reservation in full:
credits_refundedthen equalscredits_reserved. - An
editwith an image that has no transparency is still drawn and billed.
Current list prices, the same as on Pricing. An account with a negotiated discount pays less; data.usage on the task always shows the amount actually charged.
Common errors
HTTP errors at a glance
Errors before a task exists arrive as a non-2xx response, and nothing is charged. Branch on error.code or error.retryable; message names the problem. The full list and retry policy are on Errors.
Authentication
Send your API key as Authorization: Bearer <BEATAPI_API_KEY>.
Headers
Send the body as JSON with Content-Type: application/json. Idempotency-Key is optional: send a unique value (at most 255 characters) per logical request and reuse it only to retry that exact body. Within 24 hours a retry with the same key and body returns the first response again with Idempotent-Replayed: true; the same key with a different body returns 409 idempotency_conflict. Responses other than 2xx are not stored, so a retry after a 400 or 402 runs again.
Request
The model to run.
Value: mj-v8.2
If the value is wrong
- Missing:
"model" is required - Unknown model ID:
"model" mj-v7 is not catalogued - A video model sent to this endpoint:
"model" seedance-2.5 is served by POST /v1/videos/tasks, not this endpoint
The operation to run. Each action takes only its own fields (see the input modes above); any other field is refused, so you never pay for a setting that had no effect.
Allowed values: generate, variation, upscale, reroll, retexture, edit, blend, describe
Default: generate
generatestarts afresh.variation,upscaleandrerollwork on a four-image result; an upscaled image takes no follow-up.retexture,edit,blendanddescribestart from your own images inimages.- Input is not case-sensitive; the documentation writes the lower-case form.
If the value is wrong
- A value not in the list:
"action" must be one of: [generate variation upscale reroll retexture edit blend describe] - A field the action does not take:
quality is not used by action retexture; leave it out
Shape of the image as width:height, for generate and blend.
Allowed values: 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 21:9, 9:21, 5:4, 4:5, 2:1, 1:2
- A generate without it is drawn
1:1. blendtakes only1:1(its default),3:2or2:3.- For any other shape write
--ar W:Hwith whole numbers inprompt, for example--ar 7:4; it overrides this field.
If the value is wrong
- A value not in the list:
"aspect_ratio" must be one of: [1:1 4:3 3:4 3:2 2:3 16:9 9:16 21:9 9:21 5:4 4:5 2:1 1:2] - A blend with another shape:
"aspect_ratio" for blend is one of: 1:1, 3:2, 2:3
For generate only. true returns 24 quick 512 px drafts at a generate’s price, to explore a prompt before rendering it in full.
- Works at either
speed; cannot be combined withqualityhd. - A draft takes no follow-up and its images cannot be picked. To render a prompt in full, send it again without
draft; write--seed Nin the draft’s prompt for a similar, not identical, composition.
If the value is wrong
- Not a boolean:
"draft" must be a boolean - A follow-up on a draft:
source_task_id is a draft, which takes no follow-up; send the prompt again without draft (add --seed N to keep a similar composition)
Your own images as public HTTPS links. For generate they are image prompts (1 to 5); retexture, edit and describe take exactly one; blend takes 2 to 5.
Items: 1–5
Each item is a public https:// URL. For a local file, upload it first with POST /v1/files and pass the returned data.url.
- Links must be public and download within a few seconds. Have a local file? Upload it with
POST /v1/filesand send the returned link. - For
edit, send a PNG and cut out (make transparent) the parts to change. An image without transparency, such as any JPEG, is still drawn and billed. - Follow-ups (
variation,upscale,reroll) work onsource_task_idand do not takeimages. - Positions in error messages are 0-based:
images[0]is the first link.
If the value is wrong
- Missing on retexture, edit, blend or describe:
"images" is required for action describe - Fewer than blend needs:
action blend needs at least 2 image(s) in "images" - More than one for describe, retexture or edit:
action describe takes at most 1 image(s) in "images" - More than five:
"images" accepts at most 5 items - Not an https:// link:
"images[0]" must be a public HTTPS URL
Which image of a four-image result to work on, 1 to 4. It is 1-based and counts output.media of the source task.
Range: 1–4
- Required for
upscaleandvariation. - Not used by
rerollor by actions withoutsource_task_id.
If the value is wrong
- Missing on upscale or variation:
"index" is required for action upscale - Not a whole number from 1 to 4:
"index" is outside its supported range
What to draw, as on midjourney.com: the description first, then any Midjourney parameters such as --ar 3:2 --s 250. For retexture and edit it describes the new look.
Length: 1–2048 characters
- Required for
generateunlessimagesholds two or more links, and forretextureandedit. Other actions do not take it. - For
generate, the text without links and--parameters is at most 1024 characters. - Parameters that the API sets by field, and those it does not support, are refused; see the parameter table further down.
If the value is wrong
- Left out on a generate with fewer than two images:
generate needs "prompt"; only two or more images may go without one - Left out on retexture or edit:
"prompt" is required for action retexture - Sent with an action that does not take it:
prompt is not used by action upscale; leave it out - Empty or longer than the limit:
"prompt" has an unsupported length - The text without links and parameters is too long:
the prompt's text (without links and --parameters) is at most 1024 characters - A version parameter:
remove --v from the prompt: the version is fixed at 8.2; leave it out - A speed parameter:
remove --fast from the prompt: set the speed field to fast instead - A decimal ratio:
--ar takes whole numbers, like 139:100 instead of 1.39:1 --qoutside 1 to 4:--q takes 1, 2, 3 or 4 (detail; 4 is the most detailed); for a bigger picture set quality hd
hd draws about 2K instead of the standard size. It is set when you generate and cannot be added later.
Allowed values: standard, hd
Default: standard
- At
fast,hdcosts more; atrelaxit costs the same. upscalereturns the image at the pixel size it was drawn at; it does not enlarge it. Ask forhdon the first call when you want a bigger picture.- A follow-up runs at its source task’s quality. Leave the field out on a follow-up, or send the same value.
retexture,edit,blendanddescribedo not take it.
If the value is wrong
- A value not in the list:
"quality" must be one of: [standard hd] - Together with draft:
draft cannot be combined with quality hd - A follow-up asking for another quality than its source task:
source_task_id was made at quality hd and a follow-up runs the same; leave quality out
For a follow-up: the id of your own earlier Midjourney task that it works on. The task must have succeeded.
- Read
output.data.follow_upsof that task first: it lists the actions the result accepts. Any other follow-up is refused at no charge. - An upscaled image takes no follow-up. To vary it, send
variationwith thesource_task_idof its four-image result and the sameindex. - Results of
upscale,retexture,edit,describeand drafts take no follow-up.
If the value is wrong
- Not a task id:
"source_task_id" must be the id of one of your earlier tasks: "task_" followed by 32 letters or digits - Missing on a follow-up:
"source_task_id" is required for action upscale: the id of your own Midjourney task it works on - The source task is still running or failed:
source_task_id has not finished successfully; wait for it to succeed and try again - A task of another model:
source_task_id was made by seedream-5.5, not Midjourney; name one of your Midjourney tasks - A follow-up on an upscaled image:
an upscaled image takes no follow-up; to vary it, send action variation with source_task_id of its four-image result and the same index - A result of retexture, edit or describe:
source_task_id is the result of retexture, which takes no follow-up - The same image of the same result upscaled again:
that image of source_task_id was already upscaled in task_Up4Rk9Ns2Wq7Zx5Mc8Hv1Lb6Tj3Fd0Gy; use that task's result - An action that result does not list in follow_ups:
this result does not support action upscale; generate the image again and continue from the new result
fast (the default) usually finishes a generate in 1 to 3 minutes; relax takes 2 to 5 minutes and costs less.
Allowed values: fast, relax
Default: fast
- A follow-up runs at its source task’s speed and is billed at it. Leave the field out on a follow-up, or send the same value.
describedoes not take it.
If the value is wrong
- A value not in the list:
"speed" must be one of: [fast relax] - A follow-up asking for another speed than its source task:
source_task_id was made at speed relax and a follow-up runs the same; leave speed out
An address to notify when this task succeeds or fails: a public HTTPS URL on the same scheme, host and port as one of your enabled webhook endpoints, which signs the delivery with its secret.
Length: ≤ 2048 characters
- Register the endpoint first with
POST /v1/webhooks. BeatAPI sendstask.succeededortask.failedwith the same body, headers and retries as an account webhook; an account endpoint subscribed to the event receives it too, and an address identical to that endpoint’s is notified once. - The callback stops when the signing endpoint is deleted, disabled or moved to another host.
If the value is wrong
- The value is not a string:
"callback_url" must be a string. - The address is longer than 2048 characters:
"callback_url" must be at most 2048 characters. - It is not a URL, or has no host or no
httporhttpsscheme:"callback_url" must be a valid https URL. - It uses
http, or points to a private or otherwise non-public address:"callback_url" must be a public HTTPS URL. - No enabled webhook endpoint has the same scheme, host and port:
"callback_url" must be on the host of one of your active webhook endpoints, whose secret signs it; register one with POST /v1/webhooks.
Response
The task object. output is null until the task succeeds. Fields marked “while running” disappear once the task finishes.

