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

# Message prices

> The price of one message in rupees, by country and category — the same prices as in the app. Filter by country, category or both.

Permission: Any key (Full, Send only or Read only).



## OpenAPI

````yaml /openapi.json get /v1/prices
openapi: 3.1.0
info:
  title: GetReply API
  version: 1.0.0
  description: >-
    Send WhatsApp messages, templates, OTPs and campaigns from your own
    software. Every request needs an API key (Developer → API keys) as a Bearer
    token.


    Requests sent here are real and charged like any other.
servers:
  - url: https://api.getreply.in
    description: GetReply
security:
  - bearerAuth: []
tags:
  - name: Account
  - name: Messages
  - name: Templates
  - name: Contacts
  - name: Campaigns
  - name: Webhooks
paths:
  /v1/prices:
    get:
      tags:
        - Account
      summary: Message prices
      description: >-
        The price of one message in rupees, by country and category — the same
        prices as in the app. Filter by country, category or both.


        Permission: Any key (Full, Send only or Read only).
      parameters:
        - name: country
          in: query
          required: false
          description: Two-letter country code, e.g. AE.
          schema:
            type: string
            pattern: ^[A-Za-z]{2}$
        - name: category
          in: query
          required: false
          description: marketing, utility, authentication or service.
          schema:
            type: string
            enum:
              - marketing
              - utility
              - authentication
              - service
      responses:
        '200':
          description: Prices.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Prices'
        '400':
          description: 'validation_error: Some fields are missing or wrong.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                validation_error:
                  value:
                    error:
                      code: validation_error
                      message: Some fields are missing or wrong.
        '401':
          description: 'unauthorized: API key is missing or not valid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unauthorized:
                  value:
                    error:
                      code: unauthorized
                      message: API key is missing or not valid.
        '403':
          description: >-
            key_off: This API key is switched off. · forbidden_scope: This API
            key isn't allowed to do this. · ip_not_allowed: Requests from this
            IP address aren't allowed for this key. · needs_pro_plan: The API
            needs the Pro plan. · plan_ended: Your plan has ended. Renew it to
            send messages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                key_off:
                  value:
                    error:
                      code: key_off
                      message: This API key is switched off.
                forbidden_scope:
                  value:
                    error:
                      code: forbidden_scope
                      message: This API key isn't allowed to do this.
                ip_not_allowed:
                  value:
                    error:
                      code: ip_not_allowed
                      message: >-
                        Requests from this IP address aren't allowed for this
                        key.
                needs_pro_plan:
                  value:
                    error:
                      code: needs_pro_plan
                      message: The API needs the Pro plan.
                plan_ended:
                  value:
                    error:
                      code: plan_ended
                      message: Your plan has ended. Renew it to send messages.
        '422':
          description: >-
            country_unavailable: WhatsApp isn't available in this country. ·
            us_marketing_paused: Marketing messages can't go to US numbers. ·
            no_price: Sending to this country isn't available yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                country_unavailable:
                  value:
                    error:
                      code: country_unavailable
                      message: WhatsApp isn't available in this country.
                us_marketing_paused:
                  value:
                    error:
                      code: us_marketing_paused
                      message: Marketing messages can't go to US numbers.
                no_price:
                  value:
                    error:
                      code: no_price
                      message: Sending to this country isn't available yet.
        '429':
          description: 'rate_limited: Too many requests. Try again in a few seconds.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                rate_limited:
                  value:
                    error:
                      code: rate_limited
                      message: Too many requests. Try again in a few seconds.
        '500':
          description: 'server_error: Something went wrong on our side. Try again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                server_error:
                  value:
                    error:
                      code: server_error
                      message: Something went wrong on our side. Try again.
components:
  schemas:
    Prices:
      type: object
      description: >-
        Prices in rupees as strings (the shape: "0.9131" is an example only, not
        a price); null where there is no price.
      properties:
        currency:
          type: string
        data:
          type: array
          items:
            type: object
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            field:
              type: string
              description: The one field that is wrong, when there is one.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your API key, e.g. gr_live_…

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.