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

# Create a request

> Start an asynchronous phone request on behalf of an end user. Pass `Idempotency-Key` (or `idempotency_key` in the JSON body) to safely retry without launching duplicate requests.

> **Note:** `user_details.timezone` accepts an optional IANA timezone (for example, `America/Los_Angeles`). If omitted, Aurora automatically infers it from `user_details.phone_number` when possible, falling back to the request location's timezone or `UTC` for multi-zone or toll-free numbers.



## OpenAPI

````yaml /openapi.json post /api/v1/requests
openapi: 3.1.0
info:
  title: Aurora SDK API
  summary: >-
    Programmatic API for real-world phone calls, quotes, availability checks,
    and reservations.
  description: >-
    Authenticate every request with a project-scoped API key via `Authorization:
    Bearer ask_...` or `X-API-Key: ask_...`.
  version: 1.0.0
servers:
  - url: https://live.sdk.aurorax.co
    description: Production
security:
  - BearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: Requests
    description: >-
      Create, clarify, inspect, cancel, and retrieve call transcripts and
      recordings for requests.
  - name: Linked Phone Numbers
    description: >-
      Verify and manage user-owned phone numbers that can be used as outbound
      caller IDs.
  - name: Webhooks
    description: >-
      HMAC-SHA256 signed HTTP POST events delivered to your webhook URL as
      requests progress.
paths:
  /api/v1/requests:
    post:
      tags:
        - Requests
      summary: Create a request
      description: >-
        Start an asynchronous phone request on behalf of an end user. Pass
        `Idempotency-Key` (or `idempotency_key` in the JSON body) to safely
        retry without launching duplicate requests.


        > **Note:** `user_details.timezone` accepts an optional IANA timezone
        (for example, `America/Los_Angeles`). If omitted, Aurora automatically
        infers it from `user_details.phone_number` when possible, falling back
        to the request location's timezone or `UTC` for multi-zone or toll-free
        numbers.
      operationId: create_request
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Optional deduplication key scoped to this project (max 128 chars).
            title: Idempotency-Key
          description: Optional deduplication key scoped to this project (max 128 chars).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSdkRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSdkRequestResponse'
        '401':
          description: Missing, invalid, or revoked API key.
        '402':
          description: Organization billing is not active or payment is past due.
        '403':
          description: Project is suspended.
        '404':
          description: Resource was not found in this project.
        '409':
          description: >-
            Request state conflict (for example, already submitted or already
            terminal).
        '422':
          description: Validation error in request payload or headers.
components:
  schemas:
    CreateSdkRequest:
      properties:
        objective:
          type: string
          maxLength: 4000
          minLength: 1
          title: Objective
        user_details:
          $ref: '#/components/schemas/UserDetailsInput'
        targets:
          items:
            anyOf:
              - $ref: '#/components/schemas/PhoneTarget'
              - $ref: '#/components/schemas/NamedBusinessTarget'
              - $ref: '#/components/schemas/GmapsLinkTarget'
          type: array
          maxItems: 50
          title: Targets
        target_options:
          $ref: '#/components/schemas/TargetOptionsInput'
        personalisation_options:
          anyOf:
            - $ref: '#/components/schemas/PersonalisationOptionsInput'
            - type: 'null'
        webhook_uri:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Uri
        idempotency_key:
          anyOf:
            - type: string
              maxLength: 128
              minLength: 1
            - type: 'null'
          title: Idempotency Key
      type: object
      required:
        - objective
        - user_details
      title: CreateSdkRequest
    CreateSdkRequestResponse:
      properties:
        request_id:
          type: string
          title: Request Id
        status:
          $ref: '#/components/schemas/RequestStatus'
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - request_id
        - status
        - created_at
      title: CreateSdkRequestResponse
    UserDetailsInput:
      properties:
        phone_number:
          $ref: '#/components/schemas/PhoneNumberString'
        full_name:
          type: string
          maxLength: 255
          minLength: 1
          title: Full Name
        timezone:
          anyOf:
            - type: string
              maxLength: 64
            - type: 'null'
          title: Timezone
          description: >-
            Optional IANA timezone (for example, 'America/Los_Angeles'). If
            omitted, inferred from phone_number when possible.
      additionalProperties: false
      type: object
      required:
        - phone_number
        - full_name
      title: UserDetailsInput
    PhoneTarget:
      properties:
        phone_number:
          $ref: '#/components/schemas/PhoneNumberString'
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        is_business:
          type: boolean
          title: Is Business
          default: true
      additionalProperties: false
      type: object
      required:
        - phone_number
        - name
      title: PhoneTarget
    NamedBusinessTarget:
      properties:
        business:
          type: string
          maxLength: 255
          minLength: 1
          title: Business
        address:
          type: string
          maxLength: 500
          minLength: 1
          title: Address
      additionalProperties: false
      type: object
      required:
        - business
        - address
      title: NamedBusinessTarget
    GmapsLinkTarget:
      properties:
        business_gmaps_link:
          type: string
          maxLength: 2000
          minLength: 10
          title: Business Gmaps Link
      additionalProperties: false
      type: object
      required:
        - business_gmaps_link
      title: GmapsLinkTarget
    TargetOptionsInput:
      properties:
        auto_discover_relevant_businesses:
          type: boolean
          title: Auto Discover Relevant Businesses
          default: true
        search_location:
          anyOf:
            - $ref: '#/components/schemas/SearchLocationInput'
            - type: 'null'
        radius:
          anyOf:
            - type: integer
              maximum: 500000
              minimum: 100
            - type: 'null'
          title: Radius
      additionalProperties: false
      type: object
      title: TargetOptionsInput
    PersonalisationOptionsInput:
      properties:
        caller_id:
          anyOf:
            - $ref: '#/components/schemas/PhoneNumberString'
            - type: 'null'
        voice_preference:
          anyOf:
            - $ref: '#/components/schemas/VoicePreferenceInput'
            - type: 'null'
      additionalProperties: false
      type: object
      title: PersonalisationOptionsInput
    RequestStatus:
      type: string
      enum:
        - processing
        - needs_input
        - in_progress
        - completed
        - failed
        - cancelled
      title: RequestStatus
    PhoneNumberString:
      type: string
      title: PhoneNumberString
      description: Phone number in E.164 format (for example, `+14155550188`).
      examples:
        - '+14155550188'
    SearchLocationInput:
      properties:
        address:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Address
        coordinates:
          anyOf:
            - $ref: '#/components/schemas/CoordinatesInput'
            - type: 'null'
      additionalProperties: false
      type: object
      title: SearchLocationInput
    VoicePreferenceInput:
      properties:
        gender:
          $ref: '#/components/schemas/VoiceGenderOption'
          default: auto
      additionalProperties: false
      type: object
      title: VoicePreferenceInput
    CoordinatesInput:
      properties:
        lat:
          type: number
          maximum: 90
          minimum: -90
          title: Lat
        lng:
          type: number
          maximum: 180
          minimum: -180
          title: Lng
      additionalProperties: false
      type: object
      required:
        - lat
        - lng
      title: CoordinatesInput
    VoiceGenderOption:
      type: string
      enum:
        - auto
        - male
        - female
      title: VoiceGenderOption
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Project API key (`ask_...`) passed in the `Authorization` header.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Alternative header for passing the project API key.

````

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