Amazon AppSync Types API

Manage GraphQL type definitions

GitHub OpenAPI

Operations 6

POST /v1/apis/{apiId}/types Create Type #
GET /v1/apis/{apiId}/types List Types #
DELETE /v1/apis/{apiId}/types/{typeName} Delete Type #
GET /v1/apis/{apiId}/types/{typeName} Get Type #
POST /v1/apis/{apiId}/types/{typeName} Update Type #
GET /v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types List Types By Association #

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-appsync:amazon-appsync-types-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-appsync-types-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS AppSync Types API
  version: '2017-07-25'
  description: Generated from AWS's published Smithy model for AWS AppSync. 6 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://appsync.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /v1/apis/{apiId}/types:
    post:
      operationId: CreateType
      summary: Create Type
      description: Creates a Type object.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTypeResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                definition:
                  type: string
                  description: The type definition, in GraphQL Schema Definition Language (SDL) format. For more information,
                    see the GraphQL SDL documentation.
                format:
                  type: string
                  enum:
                  - SDL
                  - JSON
                  description: 'The type format: SDL or JSON.'
              required:
              - definition
              - format
      tags:
      - Types
    get:
      operationId: ListTypes
      summary: List Types
      description: Lists the types for a given API.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTypesResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: format
        in: query
        required: true
        schema:
          type: string
          enum:
          - SDL
          - JSON
        description: 'The type format: SDL or JSON.'
      - name: nextToken
        in: query
        schema:
          type: string
        description: An identifier that was returned from the previous call to this operation, which you can use to return
          the next set of items in the list.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results that you want the request to return.
      tags:
      - Types
  /v1/apis/{apiId}/types/{typeName}:
    delete:
      operationId: DeleteType
      summary: Delete Type
      description: Deletes a Type object.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteTypeResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: typeName
        in: path
        required: true
        schema:
          type: string
        description: The type name.
      tags:
      - Types
    get:
      operationId: GetType
      summary: Get Type
      description: Retrieves a Type object.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTypeResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: typeName
        in: path
        required: true
        schema:
          type: string
        description: The type name.
      - name: format
        in: query
        required: true
        schema:
          type: string
          enum:
          - SDL
          - JSON
        description: 'The type format: SDL or JSON.'
      tags:
      - Types
    post:
      operationId: UpdateType
      summary: Update Type
      description: Updates a Type object.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateTypeResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: typeName
        in: path
        required: true
        schema:
          type: string
        description: The new type name.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                definition:
                  type: string
                  description: The new definition.
                format:
                  type: string
                  enum:
                  - SDL
                  - JSON
                  description: 'The new type format: SDL or JSON.'
              required:
              - format
      tags:
      - Types
  /v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types:
    get:
      operationId: ListTypesByAssociation
      summary: List Types By Association
      description: Lists Type objects by the source API association ID.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTypesByAssociationResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: mergedApiIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged
          APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in
          other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
      - name: associationId
        in: path
        required: true
        schema:
          type: string
        description: The ID generated by the AppSync service for the source API association.
      - name: format
        in: query
        required: true
        schema:
          type: string
          enum:
          - SDL
          - JSON
        description: The format type.
      - name: nextToken
        in: query
        schema:
          type: string
        description: An identifier that was returned from the previous call to this operation, which you can use to return
          the next set of items in the list.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results that you want the request to return.
      tags:
      - Types
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: appsync
  schemas:
    BadRequestDetail:
      type: object
      properties:
        codeErrors:
          type: array
          items:
            $ref: '#/components/schemas/CodeError'
          description: Contains the list of errors in the request.
    BadRequestException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - CODE_ERROR
        detail:
          $ref: '#/components/schemas/BadRequestDetail'
    CodeError:
      type: object
      properties:
        errorType:
          type: string
          description: 'The type of code error. Examples include, but aren''t limited to: LINT_ERROR, PARSER_ERROR.'
        value:
          type: string
          description: 'A user presentable error. Examples include, but aren''t limited to: Parsing error: Unterminated string
            literal.'
        location:
          $ref: '#/components/schemas/CodeErrorLocation'
    CodeErrorLocation:
      type: object
      properties:
        line:
          type: integer
          description: The line number in the code. Defaults to 0 if unknown.
        column:
          type: integer
          description: The column number in the code. Defaults to 0 if unknown.
        span:
          type: integer
          description: The span/length of the error. Defaults to -1 if unknown.
    ConcurrentModificationException:
      type: object
      properties:
        message:
          type: string
    CreateTypeResponse:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/Type'
    DeleteTypeResponse:
      type: object
      properties: {}
    GetTypeResponse:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/Type'
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
    ListTypesByAssociationResponse:
      type: object
      properties:
        types:
          type: array
          items:
            $ref: '#/components/schemas/Type'
          description: The Type objects.
        nextToken:
          type: string
          description: An identifier that was returned from the previous call to this operation, which you can use to return
            the next set of items in the list.
    ListTypesResponse:
      type: object
      properties:
        types:
          type: array
          items:
            $ref: '#/components/schemas/Type'
          description: The Type objects.
        nextToken:
          type: string
          description: An identifier to pass in the next request to this operation to return the next set of items in the
            list.
    NotFoundException:
      type: object
      properties:
        message:
          type: string
    Type:
      type: object
      properties:
        name:
          type: string
          description: The type name.
        description:
          type: string
          description: The type description.
        arn:
          type: string
          description: The type Amazon Resource Name (ARN).
        definition:
          type: string
          description: The type definition.
        format:
          type: string
          enum:
          - SDL
          - JSON
          description: 'The type format: SDL or JSON.'
    UnauthorizedException:
      type: object
      properties:
        message:
          type: string
    UpdateTypeResponse:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/Type'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/appsync/service/2017-07-25/appsync-2017-07-25.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)