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

# GET Request

> Proxy a GET request to the Official WhatsApp Business API

This endpoint lets you proxy a GET request to the Official WhatsApp Business API.
You will be authenticated to the WhatsApp account you are proxying for.

## Example: List All Message Templates

To list all WhatsApp message templates for a Business Account, use the WABA ID as the path:

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://backend.wassist.app/api/v1/whatsapp-accounts/{account_id}/proxy/{waba_id}/message_templates" \
    -H "X-API-Key: YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    `https://backend.wassist.app/api/v1/whatsapp-accounts/${accountId}/proxy/${wabaId}/message_templates`,
    {
      headers: {
        'X-API-Key': 'YOUR_API_KEY'
      }
    }
  );

  const templates = await response.json();
  console.log(templates.data);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      f"https://backend.wassist.app/api/v1/whatsapp-accounts/{account_id}/proxy/{waba_id}/message_templates",
      headers={"X-API-Key": "YOUR_API_KEY"}
  )

  templates = response.json()
  print(templates["data"])
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "data": [
    {
      "name": "hello_world",
      "status": "APPROVED",
      "category": "UTILITY",
      "language": "en_US",
      "components": [
        {
          "type": "BODY",
          "text": "Hello {{1}}! Welcome to our service."
        }
      ],
      "id": "123456789"
    }
  ],
  "paging": {
    "cursors": {
      "before": "...",
      "after": "..."
    }
  }
}
```

<Note>
  Replace `{account_id}` with your WhatsApp Account ID (from the Waxle API) and `{waba_id}` with your WhatsApp Business Account ID (from Meta).

  You can find your WABA ID in the account details returned by `GET /whatsapp-accounts/{id}/`.
</Note>

## Other Common GET Requests

| Path                                          | Description                       |
| --------------------------------------------- | --------------------------------- |
| `{waba_id}/message_templates`                 | List all message templates        |
| `{waba_id}/phone_numbers`                     | List phone numbers in the account |
| `{phone_number_id}`                           | Get phone number details          |
| `{phone_number_id}/whatsapp_business_profile` | Get business profile              |

Look to the [WhatsApp Business API documentation](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates) for more information on the available endpoints.


## OpenAPI

````yaml api-reference/openapi.json get /api/v1/whatsapp-accounts/{id}/proxy/{path}/
openapi: 3.0.3
info:
  title: Wassist API
  version: 1.0.0
  description: API for building WhatsApp AI agents
servers:
  - url: https://backend.wassist.app
    description: Production
  - url: http://localhost:8050
    description: Development
security: []
tags:
  - name: Agents
    description: Create and manage AI agents
  - name: Conversations
    description: Chat conversations and messages
  - name: WhatsApp
    description: WhatsApp Business account management
  - name: Contacts
    description: Contact management
  - name: Integrations
    description: Third-party integrations
paths:
  /api/v1/whatsapp-accounts/{id}/proxy/{path}/:
    get:
      tags:
        - api
      description: |-
        Proxy all requests through the WhatsApp Business API.
        The path after /proxy/ is forwarded to the Graph API.
        Example: /whatsapp-accounts/123/proxy/123456/message_templates
                 -> forwards to https://graph.facebook.com/v21.0/123456/message_templates
      operationId: api_v1_whatsapp_accounts_proxy_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: string
          required: true
        - in: path
          name: path
          schema:
            type: string
            pattern: ^.+$
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsAppAccount'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WhatsAppAccount:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          nullable: true
          maxLength: 255
        waId:
          type: string
        phoneNumbers:
          type: string
          readOnly: true
        templatesUrl:
          type: string
          readOnly: true
      required:
        - id
        - phoneNumbers
        - templatesUrl
        - waId
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Pass your API key in the X-API-Key header.

````