---
updatedAt: 2026-07-13T20:20:24.000Z
agentTools:
  projectIndex: https://dev.inngage.com.br/llms.txt
---

# /subscription/

Registra e atualiza usuários

## Exemplo de request

```json
{
  "registerSubscriberRequest": {
    "app_token": "a1b2c3d4e5f6",
    "identifier": "user-42",
    "registration": "fcm-token-xyz",
    "platform": "android",
    "device_model": "SM-G991B",
    "os_version": "14",
    "app_version": "3.2.1",
    "opt_in": "1",
    "email": "cliente@example.com",
    "phone_number": "5511998887766",
    "utm_source": "google",
    "custom_field": { "nome": "Maria", "cpf": "123.456.789-00" },
    "channels": { "whatsapp": { "optIn": true }, "email": { "optIn": false } },
    "lat": -23.55,
    "long": -46.63
  }
}
```

## Exemplo de response

```json
{
  "registerSubscriberResponse": {
    "statusDescription": "Successfully: subscriberCreated",
    "subscriberId": "665f1c2a9b1e4a0012345678"
  }
}
```

<Callout icon="🚧" theme="warn">
  ### Formato de datas

  Os Custom Fields **SEMPRE** devem ser adicionados utilizando o formato de variáveis da Inngage:

  - Date: "yyyy-mm-dd"
  - Float: 10.00
  - Boolean: True or False
  - String: "Qualquer texto dentro de aspas"
</Callout>

<br />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.inngage.com.br"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v4/subscription/": {
      "post": {
        "summary": "/subscription/",
        "description": "Registra e atualiza usuários",
        "operationId": "subscription",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "app_token",
                  "identifier",
                  "registration",
                  "platform"
                ],
                "properties": {
                  "app_token": {
                    "type": "string",
                    "description": "Token de acesso do aplicativo"
                  },
                  "identifier": {
                    "type": "string",
                    "description": "Identificador do usuário a ser inscrito para receber Push"
                  },
                  "registration": {
                    "type": "string",
                    "description": "Registration ID ou Device Token do dispositivo"
                  },
                  "platform": {
                    "type": "string",
                    "description": "Nome da plataforma em que o usuário está sendo registrado"
                  },
                  "device_model": {
                    "type": "string",
                    "description": "Modelo do dispositivo, padrão: \"Windows 10.0\""
                  },
                  "os_version": {
                    "type": "integer",
                    "description": "Versão do Sistema, padrão \"11\"",
                    "format": "int32"
                  },
                  "app_version": {
                    "type": "string",
                    "description": "Versão do aplicativo, padrão: \"1.0.15\""
                  },
                  "opt_in": {
                    "type": "integer",
                    "description": "Versão instalada do aplicativo, padrão: \"2021-10-13T09:52:30.433905\"",
                    "format": "int32"
                  },
                  "custom_field": {
                    "type": "array",
                    "description": "Campo customizável, exemplo: {\"empresa\": \"Inngage\", \"nome\": \"Octavio\"},",
                    "items": {
                      "type": "string"
                    }
                  },
                  "email": {
                    "type": "string"
                  },
                  "phone_number": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "utm_source": {
                    "type": "string"
                  },
                  "lat": {
                    "type": "number",
                    "format": "float"
                  },
                  "long": {
                    "type": "number",
                    "format": "float"
                  },
                  "channels": {
                    "type": "array",
                    "description": "\"whatsapp\": { \"optIn\": true }, \"email\": { \"optIn\": false } ",
                    "items": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "registerSubscriberRequest": {
                      "app_token": "177d3286eb87ab2d94efb0da3eb87c9f",
                      "identifier": "rapha.senna@gmail.com",
                      "registration": "TestandoRapha",
                      "platform": "chrome",
                      "sdk": "1",
                      "device_model": "Windows 10.0",
                      "device_manufacturer": "Google",
                      "os_locale": "pt_BR",
                      "os_language": "pt_BR",
                      "os_version": "11",
                      "app_version": "1.0.15",
                      "app_installed_in": "2021-10-13T09:52:30.433905",
                      "app_updated_in": "2021-10-13T09:52:30.433907",
                      "uuid": "TestandoRapha",
                      "custom_field": {
                        "empresa": "Inngage",
                        "nome": "Raphael"
                      },
                      "phone_number": 5534992301819,
                      "email": "rapha.senna@gmail.com"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"registerSubscriberResponse\": {\n        \"statusCode\": \"1\",\n        \"statusDescription\": \"Sucessfully Inserted Subscriber info with identifier [rapha.senna@gmail.com] in app [3]\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "registerSubscriberResponse": {
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "type": "string",
                          "example": "1"
                        },
                        "statusDescription": {
                          "type": "string",
                          "example": "Sucessfully Inserted Subscriber info with identifier [rapha.senna@gmail.com] in app [3]"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```