Mission Brasil

Listar resultados das missões

Retorna registers aprovados com blocos agregados conforme flags de `missions_main`. Regras e observações: - apenas `registers.status = APPROVED` - `startedAt` e `endedAt` filtram `registers.updated_at` - `has_pos` retorna bloco `pdv` - `has_forms` retorna bloco `forms_data` (array) - `check_in_check_out` retorna bloco `workforce` - `has_delivery_places` retorna bloco `delivery`

GET
/registers/results

Authorization

clientIdAuth clientSecretAuth
client-id<token>

Client ID gerado na plataforma Mission Brasil.

In: header

client-secret<token>

Client Secret gerado na plataforma Mission Brasil.

In: header

Query Parameters

page?integer

Página atual. Padrão: 1.

Default1
Range1 <= value
itemsPerPage?integer

Quantidade por página. Padrão: 10, máximo: 50.

Default10
Range1 <= value <= 50
startedAt?string

Data inicial do período no formato YYYY-MM-DD.

Formatdate
endedAt?string

Data final do período no formato YYYY-MM-DD.

Formatdate
mbKey?string

Chave MB da missão.

muKey?string

Chave MU do participante ou registro.

search?string

Texto de busca em missão, MB, MU ou identifier.

Response Body

application/json

application/json

application/json

curl -X GET "https://api.missionbrasil.com.br/v1/registers/results"
{
  "total": 42,
  "page": 1,
  "itemsPerPage": 10,
  "data": [
    {
      "register_id": "9a1c18e6-97c2-4cd0-928f-8ea4b6c5a901",
      "register_updated_at": "2026-04-14T18:00:00.000Z",
      "mission_id": "795a3903-b9ca-44b8-9e44-ce80cc005dff",
      "missions_main_id": "b878cff0-2b89-11e9-a4fa-cbb55eae704b",
      "mb_key": "MB-190353",
      "mu_key": "MU-3512",
      "mission": "Auditoria Loja",
      "identifier": "SOL-100",
      "has_pos": true,
      "has_forms": true,
      "check_in_check_out": true,
      "has_delivery_places": false,
      "pdv": [
        {
          "delivered_at": "2026-04-14T19:30:00.000Z",
          "product": "Produto Z",
          "import_products_id": "9a1c18e6-97c2-4cd0-928f-8ea4b6c5a901",
          "data": {
            "exist": "true"
          }
        }
      ],
      "forms_data": [
        {
          "form_id": 123,
          "forms_name": "Pesquisa",
          "identifier": "SOL-100",
          "answers": [
            {
              "order": "1",
              "question": "Satisfação",
              "answer": "Ótimo"
            }
          ]
        }
      ],
      "workforce": {
        "mission_date": "2026-04-14T03:00:00.000Z",
        "user_name": "João",
        "mb_key": "MB-190353",
        "mu_key": "MU-3512"
      }
    }
  ]
}
{
  "error": "Invalid query params"
}
{
  "error": "Client ID ou Client Secret inválido ou ausente."
}