> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pilotstatus.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Evolution GO Compatibility Layer — API Reference

> Use the Pilot Status Evolution GO API Layer to run Evolution GO-compatible requests. Replace your base URL with the Pilot Status layer endpoint to migrate.

The Pilot Status Evolution GO API Layer gives you a drop-in replacement for your Evolution GO server. You keep every request body, header, and path exactly as they are today — the only change you make is swapping out your base URL. Pilot Status translates your Evolution GO-compatible requests into its native API and returns responses in the format your code already handles.

## Base URL

Point your HTTP client or environment variable at the following base URL to start using the Evolution GO layer:

```
https://pilotstatus.com.br/api/layer/evolution-go/
```

All paths you currently use with your Evolution GO server append directly to this URL. No other changes are required.

## Authentication

Pass your Pilot Status API key using the same header your existing Evolution GO code already sends. If your code uses the `apikey` header, continue using it:

```
apikey: YOUR_API_KEY
```

If your code uses a Bearer token header instead, that format is also accepted:

```
Authorization: Bearer YOUR_API_KEY
```

Use whichever format matches your existing implementation — you do not need to change your authentication code.

## Supported operations

The following Evolution GO operations work through the Pilot Status layer without modification:

<Accordion title="Send text message">
  Send a plain text message to any WhatsApp number.

  `POST /message/sendText/{instance}`
</Accordion>

<Accordion title="Send media (image, video, document)">
  Send image, video, audio, or document files with optional captions.

  `POST /message/sendMedia/{instance}`
</Accordion>

<Accordion title="Get instances / numbers">
  List all instances registered on your account and their current connection status.

  `GET /instance/fetchInstances`
</Accordion>

<Accordion title="Send with delay">
  Send a message with a typing presence indicator and configurable delay, simulating human-like behavior.

  `POST /message/sendText/{instance}` with `options.delay` and `options.presence` in the request body.
</Accordion>

<Accordion title="Webhook configuration">
  Register and manage webhook endpoints using the same Evolution GO webhook management paths.
</Accordion>

## Example: send text via Evolution GO layer

The request below is a standard Evolution GO send-text call — only the base URL has changed to route through Pilot Status.

```bash theme={null}
curl -X POST 'https://pilotstatus.com.br/api/layer/evolution-go/message/sendText/MyInstance' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "number": "5511999999999",
    "options": { "delay": 1200, "presence": "composing" },
    "textMessage": { "text": "Hello from Pilot Status! 👋" }
  }'
```

Replace `MyInstance` with the display name you assigned your number in the Pilot Status dashboard. The request body and response format are identical to what your existing code produces and consumes.

<Note>
  If any Evolution GO operation is not supported by the layer, use the native Pilot Status API instead. Contact support for specific compatibility questions.
</Note>
