Amazon Lightsail Contact Methods API

The Contact Methods API from Amazon Lightsail — 4 operation(s) for contact methods.

GitHub OpenAPI

Operations 4

POST /#CreateContactMethod Create Contact Method #
POST /#DeleteContactMethod Delete Contact Method #
POST /#GetContactMethods Get Contact Methods #
POST /#SendContactMethodVerification Send Contact Method Verification #

Documentation

Specifications

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/amazon-lightsail:amazon-lightsail-contact-methods-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

amazon-lightsail-contact-methods-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Lightsail Contact Methods API
  version: '2016-11-28'
  description: Generated from AWS's published Smithy model for Amazon Lightsail. 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://lightsail.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateContactMethod:
    post:
      operationId: CreateContactMethod
      summary: Create Contact Method
      description: Creates an email or SMS text message contact method. A contact method is used to send you notifications
        about your Amazon Lightsail resources. You can add one email address and one mobile phone number contact method in
        each Amazon Web Services Region. However, SMS text messaging is not supported in some Amazon Web Services Regions,
        and SMS text messages cannot be sent to some countries/regions. For more information, see Notifications in Amazon
        Lightsail. The create contact method operation supports tag-based access control via request tags. For more information,
        see the Lightsail Developer Guide.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateContactMethodResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: InvalidInputException; OperationFailureException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: NotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '428':
          description: RegionSetupInProgressException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RegionSetupInProgressException'
        '500':
          description: ServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '401':
          description: UnauthenticatedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UnauthenticatedException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - Lightsail_20161128.CreateContactMethod
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateContactMethodRequest'
      tags:
      - Contact Methods
  /#DeleteContactMethod:
    post:
      operationId: DeleteContactMethod
      summary: Delete Contact Method
      description: Deletes a contact method. A contact method is used to send you notifications about your Amazon Lightsail
        resources. You can add one email address and one mobile phone number contact method in each Amazon Web Services Region.
        However, SMS text messaging is not supported in some Amazon Web Services Regions, and SMS text messages cannot be
        sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeleteContactMethodResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: InvalidInputException; OperationFailureException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: NotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '428':
          description: RegionSetupInProgressException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RegionSetupInProgressException'
        '500':
          description: ServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '401':
          description: UnauthenticatedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UnauthenticatedException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - Lightsail_20161128.DeleteContactMethod
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteContactMethodRequest'
      tags:
      - Contact Methods
  /#GetContactMethods:
    post:
      operationId: GetContactMethods
      summary: Get Contact Methods
      description: Returns information about the configured contact methods. Specify a protocol in your request to return
        information about a specific contact method. A contact method is used to send you notifications about your Amazon
        Lightsail resources. You can add one email address and one mobile phone number contact method in each Amazon Web Services
        Region. However, SMS text messaging is not supported in some Amazon Web Services Regions, and SMS text messages cannot
        be sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetContactMethodsResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: InvalidInputException; OperationFailureException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: NotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '428':
          description: RegionSetupInProgressException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RegionSetupInProgressException'
        '500':
          description: ServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '401':
          description: UnauthenticatedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UnauthenticatedException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - Lightsail_20161128.GetContactMethods
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetContactMethodsRequest'
      tags:
      - Contact Methods
  /#SendContactMethodVerification:
    post:
      operationId: SendContactMethodVerification
      summary: Send Contact Method Verification
      description: Sends a verification request to an email contact method to ensure it's owned by the requester. SMS contact
        methods don't need to be verified. A contact method is used to send you notifications about your Amazon Lightsail
        resources. You can add one email address and one mobile phone number contact method in each Amazon Web Services Region.
        However, SMS text messaging is not supported in some Amazon Web Services Regions, and SMS text messages cannot be
        sent to some countries/regions. For more information, see Notifications in Amazon Lightsail. A verification request
        is sent to the contact method when you initially create it. Use this action to send another verification request if
        a previous verification request was deleted, or has expired. Notifications are not sent to an email contact method
        until after it is verified, and confirmed as valid.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/SendContactMethodVerificationResult'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '400':
          description: InvalidInputException; OperationFailureException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: NotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '428':
          description: RegionSetupInProgressException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RegionSetupInProgressException'
        '500':
          description: ServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '401':
          description: UnauthenticatedException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UnauthenticatedException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - Lightsail_20161128.SendContactMethodVerification
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/SendContactMethodVerificationRequest'
      tags:
      - Contact Methods
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: lightsail
  schemas:
    AccessDeniedException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    ContactMethod:
      type: object
      properties:
        contactEndpoint:
          type: string
          description: The destination of the contact method, such as an email address or a mobile phone number.
        status:
          type: string
          enum:
          - PendingVerification
          - Valid
          - Invalid
          description: 'The current status of the contact method. A contact method has the following possible status: PendingVerification
            - The contact method has not yet been verified, and the verification has not yet expired. Valid - The contact
            method has been verified. InValid - An attempt was made to verify the contact method, but the verification has
            expired.'
        protocol:
          type: string
          enum:
          - Email
          - SMS
          description: The protocol of the contact method, such as email or SMS (text messaging).
        name:
          type: string
          description: The name of the contact method.
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the contact method.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the contact method was created.
        location:
          $ref: '#/components/schemas/ResourceLocation'
        resourceType:
          type: string
          enum:
          - ContainerService
          - Instance
          - StaticIp
          - KeyPair
          - InstanceSnapshot
          - Domain
          - PeeredVpc
          - LoadBalancer
          - LoadBalancerTlsCertificate
          - Disk
          - DiskSnapshot
          - RelationalDatabase
          - RelationalDatabaseSnapshot
          - ExportSnapshotRecord
          - CloudFormationStackRecord
          - Alarm
          - ContactMethod
          - Distribution
          - Certificate
          - Bucket
          description: The Lightsail resource type of the contact method.
        supportCode:
          type: string
          description: The support code. Include this code in your email to support when you have questions about your Lightsail
            contact method. This code enables our support team to look up your Lightsail information more easily.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The tag keys and optional values for the resource. For more information about tags in Lightsail, see
            the Amazon Lightsail Developer Guide.
    CreateContactMethodRequest:
      type: object
      properties:
        protocol:
          type: string
          enum:
          - Email
          - SMS
          description: The protocol of the contact method, such as Email or SMS (text messaging). The SMS protocol is supported
            only in the following Amazon Web Services Regions. US East (N. Virginia) (us-east-1) US West (Oregon) (us-west-2)
            Europe (Ireland) (eu-west-1) Asia Pacific (Tokyo) (ap-northeast-1) Asia Pacific (Singapore) (ap-southeast-1) Asia
            Pacific (Sydney) (ap-southeast-2) For a list of countries/regions where SMS text messages can be sent, and the
            latest Amazon Web Services Regions where SMS text messaging is supported, see Supported Regions and Countries
            in the Amazon SNS Developer Guide. For more in
        contactEndpoint:
          type: string
          description: The destination of the contact method, such as an email address or a mobile phone number. Use the E.164
            format when specifying a mobile phone number. E.164 is a standard for the phone number structure used for international
            telecommunication. Phone numbers that follow this format can have a maximum of 15 digits, and they are prefixed
            with the plus character (+) and the country code. For example, a U.S. phone number in E.164 format would be specified
            as +1XXX5550100. For more information, see E.164 on Wikipedia.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The tag keys and optional values to add to the contact method during create. Use the TagResource action
            to tag a resource after it's created.
      required:
      - protocol
      - contactEndpoint
    CreateContactMethodResult:
      type: object
      properties:
        operations:
          type: array
          items:
            $ref: '#/components/schemas/Operation'
          description: An array of objects that describe the result of the action, such as the status of the request, the
            timestamp of the request, and the resources affected by the request.
    DeleteContactMethodRequest:
      type: object
      properties:
        protocol:
          type: string
          enum:
          - Email
          - SMS
          description: The protocol that will be deleted, such as Email or SMS (text messaging). To delete an Email and an
            SMS contact method if you added both, you must run separate DeleteContactMethod actions to delete each protocol.
      required:
      - protocol
    DeleteContactMethodResult:
      type: object
      properties:
        operations:
          type: array
          items:
            $ref: '#/components/schemas/Operation'
          description: An array of objects that describe the result of the action, such as the status of the request, the
            timestamp of the request, and the resources affected by the request.
    GetContactMethodsRequest:
      type: object
      properties:
        protocols:
          type: array
          items:
            type: string
            enum:
            - Email
            - SMS
          description: The protocols used to send notifications, such as Email, or SMS (text messaging). Specify a protocol
            in your request to return information about a specific contact method protocol.
    GetContactMethodsResult:
      type: object
      properties:
        contactMethods:
          type: array
          items:
            $ref: '#/components/schemas/ContactMethod'
          description: An array of objects that describe the contact methods.
    InvalidInputException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    NotFoundException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    Operation:
      type: object
      properties:
        id:
          type: string
          description: The ID of the operation.
        resourceName:
          type: string
          description: The resource name.
        resourceType:
          type: string
          enum:
          - ContainerService
          - Instance
          - StaticIp
          - KeyPair
          - InstanceSnapshot
          - Domain
          - PeeredVpc
          - LoadBalancer
          - LoadBalancerTlsCertificate
          - Disk
          - DiskSnapshot
          - RelationalDatabase
          - RelationalDatabaseSnapshot
          - ExportSnapshotRecord
          - CloudFormationStackRecord
          - Alarm
          - ContactMethod
          - Distribution
          - Certificate
          - Bucket
          description: The resource type.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the operation was initialized (1479816991.349).
        location:
          $ref: '#/components/schemas/ResourceLocation'
        isTerminal:
          type: boolean
          description: A Boolean value indicating whether the operation is terminal.
        operationDetails:
          type: string
          description: Details about the operation (Debian-1GB-Ohio-1).
        operationType:
          type: string
          enum:
          - DeleteKnownHostKeys
          - DeleteInstance
          - CreateInstance
          - StopInstance
          - StartInstance
          - RebootInstance
          - OpenInstancePublicPorts
          - PutInstancePublicPorts
          - CloseInstancePublicPorts
          - AllocateStaticIp
          - ReleaseStaticIp
          - AttachStaticIp
          - DetachStaticIp
          - UpdateDomainEntry
          - DeleteDomainEntry
          - CreateDomain
          - DeleteDomain
          - CreateInstanceSnapshot
          - DeleteInstanceSnapshot
          - CreateInstancesFromSnapshot
          - CreateLoadBalancer
          - DeleteLoadBalancer
          - AttachInstancesToLoadBalancer
          - DetachInstancesFromLoadBalancer
          - UpdateLoadBalancerAttribute
          - CreateLoadBalancerTlsCertificate
          - DeleteLoadBalancerTlsCertificate
          - AttachLoadBalancerTlsCertificate
          - CreateDisk
          - DeleteDisk
          - AttachDisk
          - DetachDisk
          - CreateDiskSnapshot
          - DeleteDiskSnapshot
          - CreateDiskFromSnapshot
          - CreateRelationalDatabase
          - UpdateRelationalDatabase
          - DeleteRelationalDatabase
          - CreateRelationalDatabaseFromSnapshot
          - CreateRelationalDatabaseSnapshot
          - DeleteRelationalDatabaseSnapshot
          - UpdateRelationalDatabaseParameters
          - StartRelationalDatabase
          - RebootRelationalDatabase
          - StopRelationalDatabase
          - EnableAddOn
          - DisableAddOn
          - PutAlarm
          - GetAlarms
          - DeleteAlarm
          - TestAlarm
          - CreateContactMethod
          - GetContactMethods
          - SendContactMethodVerification
          - DeleteContactMethod
          - CreateDistribution
          - UpdateDistribution
          - DeleteDistribution
          - ResetDistributionCache
          - AttachCertificateToDistribution
          - DetachCertificateFromDistribution
          - UpdateDistributionBundle
          - SetIpAddressType
          - CreateCertificate
          - DeleteCertificate
          - CreateContainerService
          - UpdateContainerService
          - DeleteContainerService
          - CreateContainerServiceDeployment
          - CreateContainerServiceRegistryLogin
          - RegisterContainerImage
          - DeleteContainerImage
          - CreateBucket
          - DeleteBucket
          - CreateBucketAccessKey
          - DeleteBucketAccessKey
          - UpdateBucketBundle
          - UpdateBucket
          - SetResourceAccessForBucket
          - UpdateInstanceMetadataOptions
          - StartGUISession
          - StopGUISession
          - SetupInstanceHttps
          - GetProfile
          description: The type of operation.
        status:
          type: string
          enum:
          - NotStarted
          - Started
          - Failed
          - Completed
          - Succeeded
          description: The status of the operation.
        statusChangedAt:
          type: string
          format: date-time
          description: The timestamp when the status was changed (1479816991.349).
        errorCode:
          type: string
          description: The error code.
        errorDetails:
          type: string
          description: The error details.
    RegionSetupInProgressException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
          description: Regions and Availability Zones for Lightsail
        message:
          type: string
        tip:
          type: string
          description: Opt-in Regions typically take a few minutes to finish setting up before you can work with them. Wait
            a few minutes and try again.
    ResourceLocation:
      type: object
      properties:
        availabilityZone:
          type: string
          description: The Availability Zone. Follows the format us-east-2a (case-sensitive).
        regionName:
          type: string
          enum:
          - us-east-1
          - us-east-2
          - us-west-1
          - us-west-2
          - eu-west-1
          - eu-west-2
          - eu-west-3
          - eu-central-1
          - eu-north-1
          - eu-south-2
          - ca-central-1
          - ap-east-1
          - ap-south-1
          - ap-southeast-1
          - ap-southeast-2
          - ap-northeast-1
          - ap-northeast-2
          - ap-southeast-3
          - ap-southeast-5
          - sa-east-1
          description: The Amazon Web Services Region name.
    SendContactMethodVerificationRequest:
      type: object
      properties:
        protocol:
          type: string
          enum:
          - Email
          description: The protocol to verify, such as Email or SMS (text messaging).
      required:
      - protocol
    SendContactMethodVerificationResult:
      type: object
      properties:
        operations:
          type: array
          items:
            $ref: '#/components/schemas/Operation'
          description: An array of objects that describe the result of the action, such as the status of the request, the
            timestamp of the request, and the resources affected by the request.
    ServiceException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
    Tag:
      type: object
      properties:
        key:
          type: string
          description: 'The key of the tag. Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8,
            or the following characters: + - = . _ : / @'
        value:
          type: string
          description: 'The value of the tag. Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in
            UTF-8, or the following characters: + - = . _ : / @'
    UnauthenticatedException:
      type: object
      properties:
        code:
          type: string
        docs:
          type: string
        message:
          type: string
        tip:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/lightsail/service/2016-11-28/lightsail-2016-11-28.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)