AWS Lambda Function URL API

Configure dedicated HTTPS endpoints for Lambda functions that can be invoked directly via HTTP

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /2021-10-31/functions/{FunctionName}/url Give a function a public HTTPS endpoint · Create Function Url Config #
Ask an LLM
“How do I expose a Lambda function over HTTPS without API Gateway?”
“Can I create a function URL that anyone can call without authentication?”
Tell an agent
Create a function URL for {function} with auth type {auth_type}.
Add a new function URL to {function} alias {qualifier} using auth {auth_type} and CORS {cors}.
DELETE /2021-10-31/functions/{FunctionName}/url Delete a function URL · Delete Function Url Config #
Ask an LLM
“How do I take down a function's public HTTPS endpoint?”
“Can I delete the function URL on one alias but keep the function?”
Tell an agent destructive · confirm first
Delete the function URL of {function}.
Remove the function URL from {function} alias {qualifier}.
GET /2021-10-31/functions/{FunctionName}/url Get a function URL and its settings · Get Function Url Config #
Ask an LLM
“What is the HTTPS endpoint URL of my Lambda function?”
“Which auth type and CORS settings does my function URL use?”
Tell an agent
Show the function URL configuration of {function}.
Get the function URL for {function} alias {qualifier}.
PUT /2021-10-31/functions/{FunctionName}/url Change auth or CORS on a function URL · Update Function Url Config #
Ask an LLM
“How do I require IAM auth on a function URL that is currently public?”
“Can I change the allowed origins on an existing function URL?”
Tell an agent
Change the auth type of {function}'s function URL to {auth_type}.
Update the CORS settings on the existing function URL of {function} to {cors}.

Documentation

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aws-lambda:aws-lambda-function-url-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aws-lambda-function-url-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Lambda Function Url API
  version: '2015-03-31'
  description: Generated from AWS's published Smithy model for AWS Lambda. 4 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://lambda.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /2021-10-31/functions/{FunctionName}/url:
    post:
      operationId: CreateFunctionUrlConfig
      summary: Create Function Url Config
      description: Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated
        HTTP(S) endpoint that you can use to invoke your function.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFunctionUrlConfigResponse'
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name – my-function. Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
          Partial ARN – 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      - name: Qualifier
        in: query
        schema:
          type: string
        description: The alias name.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AuthType:
                  type: string
                  enum:
                  - NONE
                  - AWS_IAM
                  description: The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict
                    access to authenticated users only. Set to NONE if you want to bypass IAM authentication to create a public
                    endpoint. For more information, see Control access to Lambda function URLs.
                Cors:
                  $ref: '#/components/schemas/Cors'
                InvokeMode:
                  type: string
                  enum:
                  - BUFFERED
                  - RESPONSE_STREAM
                  description: 'Use one of the following options: BUFFERED – This is the default option. Lambda invokes your
                    function using the Invoke API operation. Invocation results are available when the payload is complete.
                    The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become
                    available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum
                    response payload size is 200 MB.'
              required:
              - AuthType
      tags:
      - Function Url
    delete:
      operationId: DeleteFunctionUrlConfig
      summary: Delete Function Url Config
      description: Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function
        URL results in a different URL address.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name – my-function. Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
          Partial ARN – 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      - name: Qualifier
        in: query
        schema:
          type: string
        description: The alias name.
      tags:
      - Function Url
    get:
      operationId: GetFunctionUrlConfig
      summary: Get Function Url Config
      description: Returns details about a Lambda function URL.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetFunctionUrlConfigResponse'
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name – my-function. Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
          Partial ARN – 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      - name: Qualifier
        in: query
        schema:
          type: string
        description: The alias name.
      tags:
      - Function Url
    put:
      operationId: UpdateFunctionUrlConfig
      summary: Update Function Url Config
      description: Updates the configuration for a function URL of a Lambda Event Function.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateFunctionUrlConfigResponse'
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      parameters:
      - name: FunctionName
        in: path
        required: true
        schema:
          type: string
        description: The name or ARN of the Lambda function. Name formats Function name – my-function. Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
          Partial ARN – 123456789012:function:my-function. The length constraint applies only to the full ARN. If you specify
          only the function name, it is limited to 64 characters in length.
      - name: Qualifier
        in: query
        schema:
          type: string
        description: The alias name.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                AuthType:
                  type: string
                  enum:
                  - NONE
                  - AWS_IAM
                  description: The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict
                    access to authenticated users only. Set to NONE if you want to bypass IAM authentication to create a public
                    endpoint. For more information, see Control access to Lambda function URLs.
                Cors:
                  $ref: '#/components/schemas/Cors'
                InvokeMode:
                  type: string
                  enum:
                  - BUFFERED
                  - RESPONSE_STREAM
                  description: 'Use one of the following options: BUFFERED – This is the default option. Lambda invokes your
                    function using the Invoke API operation. Invocation results are available when the payload is complete.
                    The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become
                    available. Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum
                    response payload size is 200 MB.'
      tags:
      - Function Url
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: lambda
  schemas:
    Cors:
      type: object
      properties:
        AllowCredentials:
          type: boolean
          description: Whether to allow cookies or other credentials in requests to your function URL. The default is false.
        AllowHeaders:
          type: array
          items:
            type: string
          description: 'The HTTP headers that origins can include in requests to your function URL. For example: Date, Keep-Alive,
            X-Custom-Header.'
        AllowMethods:
          type: array
          items:
            type: string
          description: 'The HTTP methods that are allowed when calling your function URL. For example: GET, POST, DELETE,
            or the wildcard character (*).'
        AllowOrigins:
          type: array
          items:
            type: string
          description: 'The origins that can access your function URL. You can list any number of specific origins, separated
            by a comma. For example: https://www.example.com, http://localhost:60905. Alternatively, you can grant access
            to all origins using the wildcard character (*).'
        ExposeHeaders:
          type: array
          items:
            type: string
          description: 'The HTTP headers in your function response that you want to expose to origins that call your function
            URL. For example: Date, Keep-Alive, X-Custom-Header.'
        MaxAge:
          type: integer
          description: The maximum amount of time, in seconds, that web browsers can cache results of a preflight request.
            By default, this is set to 0, which means that the browser doesn't cache results.
    CreateFunctionUrlConfigResponse:
      type: object
      properties:
        FunctionUrl:
          type: string
          description: The HTTP URL endpoint for your function.
        FunctionArn:
          type: string
          description: The Amazon Resource Name (ARN) of your function.
        AuthType:
          type: string
          enum:
          - NONE
          - AWS_IAM
          description: The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access
            to authenticated users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint.
            For more information, see Control access to Lambda function URLs.
        Cors:
          $ref: '#/components/schemas/Cors'
        CreationTime:
          type: string
          description: When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
        InvokeMode:
          type: string
          enum:
          - BUFFERED
          - RESPONSE_STREAM
          description: 'Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function
            using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload
            size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes
            your function using the InvokeWithResponseStream API operation. The maximum response payload size is 200 MB.'
      required:
      - FunctionUrl
      - FunctionArn
      - AuthType
      - CreationTime
    GetFunctionUrlConfigResponse:
      type: object
      properties:
        FunctionUrl:
          type: string
          description: The HTTP URL endpoint for your function.
        FunctionArn:
          type: string
          description: The Amazon Resource Name (ARN) of your function.
        AuthType:
          type: string
          enum:
          - NONE
          - AWS_IAM
          description: The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access
            to authenticated users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint.
            For more information, see Control access to Lambda function URLs.
        Cors:
          $ref: '#/components/schemas/Cors'
        CreationTime:
          type: string
          description: When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
        LastModifiedTime:
          type: string
          description: When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
        InvokeMode:
          type: string
          enum:
          - BUFFERED
          - RESPONSE_STREAM
          description: 'Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function
            using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload
            size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes
            your function using the InvokeWithResponseStream API operation. The maximum response payload size is 200 MB.'
      required:
      - FunctionUrl
      - FunctionArn
      - AuthType
      - CreationTime
      - LastModifiedTime
    InvalidParameterValueException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    ResourceConflictException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    ResourceNotFoundException:
      type: object
      properties:
        Type:
          type: string
        Message:
          type: string
    ServiceException:
      type: object
      properties:
        Type:
          type: string
        Message:
          type: string
    TooManyRequestsException:
      type: object
      properties:
        retryAfterSeconds:
          type: string
          description: The number of seconds the caller should wait before retrying.
        Type:
          type: string
        message:
          type: string
        Reason:
          type: string
          enum:
          - ConcurrentInvocationLimitExceeded
          - FunctionInvocationRateLimitExceeded
          - ReservedFunctionConcurrentInvocationLimitExceeded
          - ReservedFunctionInvocationRateLimitExceeded
          - CallerRateLimitExceeded
          - ConcurrentSnapshotCreateLimitExceeded
    UpdateFunctionUrlConfigResponse:
      type: object
      properties:
        FunctionUrl:
          type: string
          description: The HTTP URL endpoint for your function.
        FunctionArn:
          type: string
          description: The Amazon Resource Name (ARN) of your function.
        AuthType:
          type: string
          enum:
          - NONE
          - AWS_IAM
          description: The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access
            to authenticated users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint.
            For more information, see Control access to Lambda function URLs.
        Cors:
          $ref: '#/components/schemas/Cors'
        CreationTime:
          type: string
          description: When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
        LastModifiedTime:
          type: string
          description: When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
        InvokeMode:
          type: string
          enum:
          - BUFFERED
          - RESPONSE_STREAM
          description: 'Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function
            using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload
            size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes
            your function using the InvokeWithResponseStream API operation. The maximum response payload size is 200 MB.'
      required:
      - FunctionUrl
      - FunctionArn
      - AuthType
      - CreationTime
      - LastModifiedTime
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/lambda/service/2015-03-31/lambda-2015-03-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)