apidesk
GitHubGo to workspace ↗
MAKING A REQUEST

Request body

The body carries data to the server. Choose a format that matches what the endpoint expects.

Open the Body tab for methods such as POST, PUT and PATCH, then select a format from the body type menu.

JSON

Use for structured data when an API expects JSON. It is common for creating or updating resources.

{
  "name": "Ada",
  "role": "admin"
}

x-www-form-urlencoded

Use for simple form fields encoded as key-value pairs. Some token and older endpoints expect this format.

username=ada&active=true

form-data

Use for multipart form submissions, especially when the request includes file uploads.

Raw

Use for plain text or a custom payload when the API does not expect a structured form.

Plain text or custom payload

GraphQL

Use for GraphQL endpoints. Enter a query and include variables when the operation needs them.

{ books { title author } }
i

Check the endpoint documentation for its expected body format. The selected type controls how APIDesk formats the request.

a screenshot of the request Body tab