Close · Capability

API Endpoints — subpackage_sendAs

API Endpoints — subpackage_sendAs. 6 operations. Lead operation: List Send As Associations. Self-contained Naftiko capability covering one Close business surface.

Run with Naftiko Closesubpackage_sendAs

What You Can Do

GET
List — List Send As Associations
/v1/send-as
POST
Create — Create a Send As Association
/v1/send-as
DELETE
Deletebyuser — Delete a Send As Association by allowed user
/v1/send-as
POST
Bulkcreate — Edit Send As Associations in bulk
/v1/send-as/bulk
GET
Get — Retrieve a single Send As Association
/v1/send-as/{id}
DELETE
Delete — Delete a Send As Association by ID
/v1/send-as/{id}

MCP Tools

list-send-associations

List Send As Associations

read-only idempotent
create-send-association

Create a Send As Association

delete-send-association-allowed-user

Delete a Send As Association by allowed user

idempotent
edit-send-associations-bulk

Edit Send As Associations in bulk

retrieve-single-send-association

Retrieve a single Send As Association

read-only idempotent
delete-send-association-id

Delete a Send As Association by ID

idempotent

Capability Spec

close-subpackage-sendas.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Endpoints — subpackage_sendAs
  description: 'API Endpoints — subpackage_sendAs. 6 operations. Lead operation: List Send As Associations. Self-contained
    Naftiko capability covering one Close business surface.'
  tags:
  - Close
  - subpackage_sendAs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOSE_API_KEY: CLOSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: close-subpackage-sendas
    baseUri: https://api.close.com/api/v1
    description: API Endpoints — subpackage_sendAs business capability. Self-contained, no shared references.
    resources:
    - name: send_as
      path: /send_as/
      operations:
      - name: list
        method: GET
        description: List Send As Associations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: allowed_user_id
          in: query
          type: string
        - name: allowing_user_id
          in: query
          type: string
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
      - name: create
        method: POST
        description: Create a Send As Association
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deletebyuser
        method: DELETE
        description: Delete a Send As Association by allowed user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: allowed_user_id
          in: query
          type: string
        - name: allowing_user_id
          in: query
          type: string
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
    - name: send_as-bulk
      path: /send_as/bulk/
      operations:
      - name: bulkcreate
        method: POST
        description: Edit Send As Associations in bulk
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: send_as-id
      path: /send_as/{id}/
      operations:
      - name: get
        method: GET
        description: Retrieve a single Send As Association
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
      - name: delete
        method: DELETE
        description: Delete a Send As Association by ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          description: Use your API key as the username and leave the password empty.
          required: true
    authentication:
      type: bearer
      token: '{{env.CLOSE_API_KEY}}'
  exposes:
  - type: rest
    namespace: close-subpackage-sendas-rest
    port: 8080
    description: REST adapter for API Endpoints — subpackage_sendAs. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/send-as
      name: send-as
      description: REST surface for send_as.
      operations:
      - method: GET
        name: list
        description: List Send As Associations
        call: close-subpackage-sendas.list
        with:
          allowed_user_id: rest.allowed_user_id
          allowing_user_id: rest.allowing_user_id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: create
        description: Create a Send As Association
        call: close-subpackage-sendas.create
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletebyuser
        description: Delete a Send As Association by allowed user
        call: close-subpackage-sendas.deletebyuser
        with:
          allowed_user_id: rest.allowed_user_id
          allowing_user_id: rest.allowing_user_id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/send-as/bulk
      name: send-as-bulk
      description: REST surface for send_as-bulk.
      operations:
      - method: POST
        name: bulkcreate
        description: Edit Send As Associations in bulk
        call: close-subpackage-sendas.bulkcreate
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/send-as/{id}
      name: send-as-id
      description: REST surface for send_as-id.
      operations:
      - method: GET
        name: get
        description: Retrieve a single Send As Association
        call: close-subpackage-sendas.get
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete a Send As Association by ID
        call: close-subpackage-sendas.delete
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: close-subpackage-sendas-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Endpoints — subpackage_sendAs. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-send-associations
      description: List Send As Associations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-sendas.list
      with:
        allowed_user_id: tools.allowed_user_id
        allowing_user_id: tools.allowing_user_id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: create-send-association
      description: Create a Send As Association
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: close-subpackage-sendas.create
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-send-association-allowed-user
      description: Delete a Send As Association by allowed user
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: close-subpackage-sendas.deletebyuser
      with:
        allowed_user_id: tools.allowed_user_id
        allowing_user_id: tools.allowing_user_id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: edit-send-associations-bulk
      description: Edit Send As Associations in bulk
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: close-subpackage-sendas.bulkcreate
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-single-send-association
      description: Retrieve a single Send As Association
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: close-subpackage-sendas.get
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-send-association-id
      description: Delete a Send As Association by ID
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: close-subpackage-sendas.delete
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.