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

# Suggest search locations

> Autocomplete locations. Reuse the sessionToken when resolving the selected place.



## OpenAPI

````yaml /openapi.json post /api/v1/map-leads/suggest
openapi: 3.1.0
info:
  title: Nudgen Developer API
  version: 1.0.0
  description: >-
    REST API for contacts, campaigns, Lifetime triggers, sending domains, brand
    settings, AI drafts, and local Map Leads search/import. Most endpoints use a
    Personal Access Token; Lifetime triggers require a scoped team API key.
servers:
  - url: https://app.nudgen.net
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Map Leads
  - name: Identity
  - name: Contacts
  - name: Campaigns
  - name: Brand settings
  - name: AI
  - name: Team API keys
  - name: Sending domains
paths:
  /api/v1/map-leads/suggest:
    post:
      tags:
        - Map Leads
      summary: Suggest search locations
      description: >-
        Autocomplete locations. Reuse the sessionToken when resolving the
        selected place.
      operationId: suggestMapLeadsLocations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                input:
                  type: string
                  description: Fewer than two trimmed characters returns an empty list.
                sessionToken:
                  type: string
                language:
                  type: string
              required:
                - input
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  suggestions:
                    type: array
                    items:
                      type: object
                      properties:
                        placeId:
                          type: string
                        description:
                          type: string
                        lat:
                          type: number
                          minimum: -90
                          maximum: 90
                        lng:
                          type: number
                          minimum: -180
                          maximum: 180
                        resultType:
                          type: string
                      required:
                        - placeId
                        - description
                required:
                  - suggestions
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapLeadsError'
        '401':
          description: Unauthorized or no active workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapLeadsError'
        '403':
          description: Daily search quota or contact plan limit reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapLeadsError'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapLeadsError'
        '500':
          description: Provider failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MapLeadsError'
components:
  schemas:
    MapLeadsError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        quota:
          $ref: '#/components/schemas/MapLeadsQuota'
      required:
        - error
    MapLeadsQuota:
      type: object
      properties:
        plan:
          type: string
        limit:
          type:
            - integer
            - 'null'
        used:
          type: integer
        remaining:
          type:
            - integer
            - 'null'
        resetAt:
          type: string
          format: date-time
          description: Next midnight UTC.
      required:
        - plan
        - limit
        - used
        - remaining
        - resetAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: PAT
      description: Personal Access Token created from Settings -> API Keys.

````

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