# Å

Canonical URL: https://developers.iagenify.com/pt/sdk/workflows/steps/http/
Language: pt

`type: "http"`

Any HTTP petition, con il suo loop custodito: ogni redirezionament è re-checked, la risposta è plafoned, e il timeout è delimitat.

Status: url required · 5 redirects · 10 MB · 15 minutes

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `url` | string | obrigatório | Onde. Disparès è negat a salva. |
| `method` | string | POST | Qualsiasi metodo. |
| `headers` | object |  | Aggiunto a `Content-Type: application/json`. |
| `body` | any | the run's context | Enviato come JSON. Absente envia la entrada e la step outputs. |
| `timeoutMs` | integer | 900 000 | Quinze minuti, no máximo. |

```javascript
{ id: "notify", type: "http", config: {
    url: "https://hooks.example.com/digest",
    method: "POST",
    headers: { Authorization: "Bearer …" },
    body: { text: "{{steps.write.output.text}}" } } }
```

## Saída {#output}

```javascript
{{steps.notify.output.status}}    // 200
{{steps.notify.output.body}}      // parsed JSON, or the text
```

## Le redireccions sono seguite di mano {#redirects}

> **Ogni salto è verificato di nuovo**
>
> Cinqu al majù. Una redireccion che ha condut in un lugar privèd, altrimenti sarebbe l'indirizzo completo checkone in un hop — e è esattamente per questo un redireccionamento è, da l'altro lato.

Una redireccion ca i browsers diverten in un GET è transformat in un GET qui tambèn, senza corpo.

## I limites {#bounds}

| Coisa | Limite |
| --- | --- |
| Risposta | 10 MB |
| Redirecciona | 5 |
| Tempo stop | 15 minuti |

## Un reniego non fa il pas {#failure}

Un status al disfunt del range di success, portando lo status, l'indirizzo e il messaggio che il service restituit — che è generalmente la cosa che lo explica.

- [estado](/pt/sdk/workflows/steps/condition): ramificando sul status.
- [Etapas do fluxo de trabalho](/pt/sdk/workflows/steps): Os 23 tipos.

```python
{"id": "notify", "type": "http", "config": {
    "url": "https://hooks.example.com/digest",
    "method": "POST",
    "headers": {"Authorization": "Bearer …"},
    "body": {"text": "{{steps.write.output.text}}"}}}
```

```python
"{{steps.notify.output.status}}"   # 200
"{{steps.notify.output.body}}"     # parsed JSON, or the text
```
