Amazon Transfer Family CreateAgreement API

The CreateAgreement API from Amazon Transfer Family — 1 operation(s) for createagreement.

GitHub OpenAPI

Operations 1

POST /#CreateAgreement Create Agreement #

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-transfer-family:amazon-transfer-family-createagreement-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-transfer-family-createagreement-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Transfer Family Createagreement API
  version: '2018-11-05'
  description: Generated from AWS's published Smithy model for AWS Transfer Family. 1 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://transfer.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateAgreement:
    post:
      operationId: CreateAgreement
      summary: Create Agreement
      description: Creates an agreement. An agreement is a bilateral trading partner agreement, or partnership, between an
        Transfer Family server and an AS2 process. The agreement defines the file and message transfer relationship between
        the server and the AS2 process. To define an agreement, Transfer Family combines a server, local profile, partner
        profile, certificate, and other attributes. The partner is identified with the PartnerProfileId, and the AS2 process
        is identified with the LocalProfileId. Specify either BaseDirectory or CustomDirectories, but not both. Specifying
        both causes the command to fail.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateAgreementResponse'
        '503':
          description: InternalServiceError; ServiceUnavailableException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServiceError'
        '400':
          description: InvalidRequestException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '409':
          description: ResourceExistsException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceExistsException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - TransferService.CreateAgreement
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateAgreementRequest'
      tags:
      - Createagreement
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: transfer
  schemas:
    CreateAgreementRequest:
      type: object
      properties:
        Description:
          type: string
          description: A name or short description to identify the agreement.
        ServerId:
          type: string
          description: A system-assigned unique identifier for a server instance. This is the specific server that the agreement
            uses.
        LocalProfileId:
          type: string
          description: A unique identifier for the AS2 local profile.
        PartnerProfileId:
          type: string
          description: A unique identifier for the partner profile used in the agreement.
        BaseDirectory:
          type: string
          description: The landing directory (folder) for files transferred by using the AS2 protocol. A BaseDirectory example
            is /amzn-s3-demo-bucket/home/mydirectory.
        AccessRole:
          type: string
          description: Connectors are used to send files using either the AS2 or SFTP protocol. For the access role, provide
            the Amazon Resource Name (ARN) of the Identity and Access Management role to use. For AS2 connectors With AS2,
            you can send files by calling StartFileTransfer and specifying the file paths in the request parameter, SendFilePaths.
            We use the file’s parent directory (for example, for --send-file-paths /bucket/dir/file.txt, parent directory
            is /bucket/dir/) to temporarily store a processed AS2 message file, store the MDN when we receive them from the
            partner, and write a final JSON file containin
        Status:
          type: string
          enum:
          - ACTIVE
          - INACTIVE
          description: The status of the agreement. The agreement can be either ACTIVE or INACTIVE.
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: Key-value pairs that can be used to group and search for agreements.
        PreserveFilename:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: 'Determines whether or not Transfer Family appends a unique string of characters to the end of the
            AS2 message payload filename when saving it. ENABLED: the filename provided by your trading parter is preserved
            when the file is saved. DISABLED (default value): when Transfer Family saves the file, the filename is adjusted,
            as described in File names and locations.'
        EnforceMessageSigning:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: 'Determines whether or not unsigned messages from your trading partners will be accepted. ENABLED:
            Transfer Family rejects unsigned messages from your trading partner. DISABLED (default value): Transfer Family
            accepts unsigned messages from your trading partner.'
        CustomDirectories:
          $ref: '#/components/schemas/CustomDirectoriesType'
      required:
      - ServerId
      - LocalProfileId
      - PartnerProfileId
      - AccessRole
    CreateAgreementResponse:
      type: object
      properties:
        AgreementId:
          type: string
          description: The unique identifier for the agreement. Use this ID for deleting, or updating an agreement, as well
            as in any other API calls that require that you specify the agreement ID.
      required:
      - AgreementId
    CustomDirectoriesType:
      type: object
      properties:
        FailedFilesDirectory:
          type: string
          description: Specifies a location to store failed AS2 message files.
        MdnFilesDirectory:
          type: string
          description: Specifies a location to store MDN files.
        PayloadFilesDirectory:
          type: string
          description: Specifies a location to store the payload for AS2 message files.
        StatusFilesDirectory:
          type: string
          description: Specifies a location to store AS2 status messages.
        TemporaryFilesDirectory:
          type: string
          description: Specifies a location to store temporary AS2 message files.
      required:
      - FailedFilesDirectory
      - MdnFilesDirectory
      - PayloadFilesDirectory
      - StatusFilesDirectory
      - TemporaryFilesDirectory
    InternalServiceError:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    InvalidRequestException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    ResourceExistsException:
      type: object
      properties:
        Message:
          type: string
        Resource:
          type: string
        ResourceType:
          type: string
      required:
      - Message
      - Resource
      - ResourceType
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        Resource:
          type: string
        ResourceType:
          type: string
      required:
      - Message
      - Resource
      - ResourceType
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The name assigned to the tag that you create.
        Value:
          type: string
          description: Contains one or more values that you assigned to the key name you create.
      required:
      - Key
      - Value
    ThrottlingException:
      type: object
      properties:
        RetryAfterSeconds:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/transfer/service/2018-11-05/transfer-2018-11-05.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)