Elementium Sign in
Contents

Utility & web · Step

Send JSON to the web

Send JSON to a web address (POST, PUT or PATCH) and read its answer. HTTPS only, at most 10 per run.

Pro plan http.post_json

In a flow

“When a button is clicked, send JSON to the web.”

Send each new application to your own site.

What it does

Send JSON to a web address (POST, PUT or PATCH) and read its answer. HTTPS only, at most 10 per run. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 6 values later steps can use. Find it under Utility & web in the palette.

When to use it

Use it for odds and ends: send JSON to a web address (POST, PUT or PATCH) and read its answer. HTTPS only, at most 10 per run.

When not to

If nothing should change in Discord, a value node or a check is lighter.

Typical wiring

Sockets: settings you can wire

Address Text needed

The web address to call. It must start with https://. Variables allowed.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Needed. Publish lists it until it's set or wired; the step can't run without it.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more

JSON to send Text

The JSON, like {"name": "{user.name}"}. Variables allowed: their text is made safe for JSON. Wire in Object from Set in object to send it as it is.

What goes there: Type it in the side panel, or wire in text. e.g. Hello there

If it's empty: Optional. Left empty and unwired, it uses {}.

Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more

Values it gives

Status Number

The answer's status code: 200 is OK, 404 not found. e.g. 200

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more

Worked Yes / no

True for a status from 200 to 299. e.g. true

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 572 more

Answer Text

The whole answer as JSON text, for Get from object. Empty when it wasn't JSON or is over 4000 characters. e.g. {"name": "Sam"}

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more

Value Text

What was at Read, as text (JSON text for a list or object). e.g. Sam

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more

Value as a number Number

What was at Read, as a number, 0 if it isn't one. e.g. 42

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more

Found Yes / no

True when Read found something in the answer. e.g. true

If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.

Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 572 more

Often next

Related in Utility & web

Wires and sockets · Data values · Plans