Recordari
← Volver al listado

Este endpoint aún no está traducido al español; se muestra el original en inglés. Se actualizará solo cuando la traducción esté lista.

POST/api/v1/mitto/discovery-runs

Start a discovery run

Searches people for a segment and builds a preview (status 'searching', then 'preview_ready'). Nothing is charged until the run is approved. Requires an API key with the 'prospects:discover' scope.

Autenticación

Envía tu API key en el header x-api-key header.

x-api-keybearer

Cuerpo de la petición

obligatorio

PublicMittoCreateDiscoveryRunDto

icpIdrequired

string (uuid)

Segment to search people for

requestedCountrequired

number

How many people to add. With email or phone required, only people that have it count.

contactRequirement

PublicMittoContactRequirementDto

Contact data every person must have. Left out: the LinkedIn profile is enough (the cheapest run).

listId

string (uuid)

Existing list to save the people into. Pass this or listName.

listName

string

Name of a new list. Pass this or listId.

Ejemplo de petición

json
{
  "icpId": "",
  "requestedCount": 100,
  "contactRequirement": {
    "email": false,
    "phone": false
  },
  "listId": "",
  "listName": "CFOs logística noviembre"
}

Respuestas

201

PublicMittoDiscoveryRunResponseDto

statusCoderequired

number

countrequired

number

errorrequired

string

datarequired

PublicMittoDiscoveryRunDto

Ejemplo de respuesta

json
{
  "statusCode": 200,
  "count": 0,
  "error": null,
  "data": {
    "id": "",
    "icpId": null,
    "listId": null,
    "requestedCount": 0,
    "status": "searching",
    "preview": {
      "totalMatches": 0,
      "sample": [
        {
          "name": "",
          "title": "",
          "company": "",
          "country": "",
          "fitScore": 0
        }
      ],
      "averageFit": 0
    },
    "contactRequirement": {
      "email": false,
      "phone": false
    },
    "estimatedCount": 0,
    "creditsPerProspect": 0,
    "estimatedCredits": 0,
    "creditsReturned": 0,
    "availableCredits": 0,
    "canAfford": false,
    "progress": {
      "reviewed": 0,
      "added": 0,
      "skipped": 0,
      "creditsConsumed": 0
    },
    "error": {
      "code": "",
      "message": ""
    },
    "createdAt": "2026-01-15T10:00:00.000Z",
    "approvedAt": "2026-01-15T10:00:00.000Z",
    "completedAt": "2026-01-15T10:00:00.000Z"
  }
}
400Invalid parameters or body
401Missing or invalid API key or Bearer token
403The credential lacks the 'prospects:discover' scope, or the organization is not on credits billing (Mitto)