Terminal49 Custom Field Definitions API

The Custom Field Definitions API from Terminal49 — 2 operation(s) for custom field definitions.

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 7

GET /custom_field_definitions List custom field definition templates #
POST /custom_field_definitions Create a custom field definition template #
GET /custom_field_definitions/{id} Get a custom field definition #
PATCH /custom_field_definitions/{id} Update a custom field definition #
DELETE /custom_field_definitions/{id} Delete a custom field definition #
GET /accounts/{account_id}/custom_field_definitions List custom field definitions #
POST /accounts/{account_id}/custom_field_definitions Create a custom field definition #

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/terminal49:terminal49-custom-field-definitions-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

terminal49-custom-field-definitions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Terminal49 Custom Field Definitions API
  version: 0.2.0
  contact:
    name: Terminal49 API support
    url: https://www.terminal49.com
    email: support@terminal49.com
  termsOfService: https://www.terminal49.com/terms
  x-label: Beta
  x-refined-note:
  - x-synced-at differs across the merged source definitions and was not carried
  - x-synced-from differs across the merged source definitions and was not carried
  description: 'Operations tagged Custom Field Definitions across 2 of this provider''s published API definitions: terminal49-docs-openapi.json, terminal49-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.terminal49.com/v2
  description: Production
security:
- authorization: []
tags:
- name: Custom Field Definitions
paths:
  /custom_field_definitions:
    get:
      summary: List custom field definition templates
      operationId: get-custom-field-definitions
      tags:
      - Custom Field Definitions
      parameters:
      - schema:
          type: string
          enum:
          - Shipment
          - Cargo
        in: query
        name: filter[entity_type]
        description: Filter by entity type. `Cargo` means containers.
      - schema:
          type: string
        in: query
        name: filter[data_type]
        description: Filter by data type
      - schema:
          type: string
        in: query
        name: filter[display_name]
        description: Filter by display name (prefix match)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/custom_field_definition'
                  links:
                    $ref: '#/components/schemas/links'
      description: Lists the Terminal49 template definitions. To list the definitions configured for your account, use `GET /accounts/{account_id}/custom_field_definitions`. The list is not paginated. The API ignores `page[number]` and `page[size]` and returns every row, but still sends pagination `links`. Do not follow `links.next`.
    post:
      summary: Create a custom field definition template
      operationId: post-custom-field-definitions
      tags:
      - Custom Field Definitions
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/custom_field_definition'
                  links:
                    $ref: '#/components/schemas/link-self'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  type: object
                  required:
                  - type
                  - attributes
                  properties:
                    type:
                      type: string
                      enum:
                      - custom_field_definition
                    attributes:
                      type: object
                      required:
                      - entity_type
                      - api_slug
                      - display_name
                      - data_type
                      properties:
                        entity_type:
                          type: string
                          enum:
                          - Shipment
                          - Cargo
                          description: '`Cargo` means containers.'
                        api_slug:
                          type: string
                        display_name:
                          type: string
                        description:
                          type:
                          - string
                          - 'null'
                        data_type:
                          type: string
                          enum:
                          - short_text
                          - number
                          - date
                          - datetime
                          - boolean
                          - enum
                          - enum_multi
                          - reference
                        reference_type:
                          type:
                          - string
                          - 'null'
                        validation:
                          type:
                          - object
                          - 'null'
                          additionalProperties: true
                        default_format:
                          type:
                          - string
                          - 'null'
                        default_value:
                          $ref: '#/components/schemas/custom_field_value'
                        reference_number:
                          type: boolean
                          description: Whether values are reference numbers. Terminal49 indexes reference-number values on account definitions for global search and document matching.
                          default: false
                        sensitive:
                          type: boolean
                          description: Whether the field is sensitive. Sensitive fields are hidden from recipients of externally shared container views.
                          default: false
                        inline_option_creation:
                          type: boolean
                          description: Whether users can add a new option while entering an `enum` or `enum_multi` value in the Terminal49 app.
                          default: false
      description: Creates a Terminal49 template definition. Only Terminal49 accounts can create templates; other accounts receive 401. To create a definition for your account, use `POST /accounts/{account_id}/custom_field_definitions`.
    servers:
    - url: https://api.terminal49.com/v2
      description: Production
  /custom_field_definitions/{id}:
    parameters:
    - schema:
        type: string
      name: id
      in: path
      required: true
      description: Custom field definition ID
    get:
      summary: Get a custom field definition
      operationId: get-custom-field-definitions-id
      tags:
      - Custom Field Definitions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/custom_field_definition'
                  links:
                    $ref: '#/components/schemas/link-self'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      summary: Update a custom field definition
      operationId: patch-custom-field-definitions-id
      tags:
      - Custom Field Definitions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/custom_field_definition'
                  links:
                    $ref: '#/components/schemas/link-self'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  type: object
                  required:
                  - type
                  - attributes
                  properties:
                    type:
                      type: string
                      enum:
                      - custom_field_definition
                    attributes:
                      type: object
                      properties:
                        display_name:
                          type: string
                        description:
                          type:
                          - string
                          - 'null'
                        default_format:
                          type:
                          - string
                          - 'null'
                        reference_number:
                          type: boolean
                          description: Whether values are reference numbers. Terminal49 indexes reference-number values on account definitions for global search and document matching.
                        sensitive:
                          type: boolean
                          description: Whether the field is sensitive. Sensitive fields are hidden from recipients of externally shared container views.
                        inline_option_creation:
                          type: boolean
                          description: Whether users can add a new option while entering an `enum` or `enum_multi` value in the Terminal49 app.
                      description: The attributes the API updates. It ignores any other attribute, such as `data_type`, `validation` or `default_value`, and still returns 200.
    delete:
      summary: Delete a custom field definition
      operationId: delete-custom-field-definitions-id
      tags:
      - Custom Field Definitions
      responses:
        '204':
          description: No Content
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
      description: 'Deletes a custom field definition. A definition that has values returns 422; archive it instead. Templates are Terminal49-managed: other accounts get 401 when they update or delete one, so only Terminal49 accounts can see the 422 for a template that other accounts use.'
    servers:
    - url: https://api.terminal49.com/v2
      description: Production
  /accounts/{account_id}/custom_field_definitions:
    parameters:
    - schema:
        type: string
        format: uuid
      name: account_id
      in: path
      required: true
      description: Your account ID. The API always uses the account of the authenticated user.
    get:
      summary: List custom field definitions
      operationId: get-account-custom-field-definitions
      tags:
      - Custom Field Definitions
      parameters:
      - schema:
          type: string
          enum:
          - Shipment
          - Cargo
        in: query
        name: filter[entity_type]
        description: Filter by entity type. `Cargo` means containers.
      - schema:
          type: string
        in: query
        name: filter[data_type]
        description: Filter by data type
      - schema:
          type: string
        in: query
        name: filter[display_name]
        description: Filter by display name (prefix match)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/custom_field_definition'
                  links:
                    $ref: '#/components/schemas/links'
      description: Lists the custom field definitions configured for your account. The list is not paginated. The API ignores `page[number]` and `page[size]` and returns every row, but still sends pagination `links`. Do not follow `links.next`.
    post:
      summary: Create a custom field definition
      operationId: post-account-custom-field-definitions
      tags:
      - Custom Field Definitions
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/custom_field_definition'
                  links:
                    $ref: '#/components/schemas/link-self'
        '404':
          description: '`template_id` does not match a Terminal49 template.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      $ref: '#/components/schemas/error'
              example:
                errors:
                - status: '404'
                  title: Not Found
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  type: object
                  required:
                  - type
                  - attributes
                  properties:
                    type:
                      type: string
                      enum:
                      - custom_field_definition
                    attributes:
                      type: object
                      properties:
                        entity_type:
                          type: string
                          enum:
                          - Shipment
                          - Cargo
                          description: '`Cargo` means containers.'
                        api_slug:
                          type: string
                        display_name:
                          type: string
                        description:
                          type:
                          - string
                          - 'null'
                        data_type:
                          type: string
                          enum:
                          - short_text
                          - number
                          - date
                          - datetime
                          - boolean
                          - enum
                          - enum_multi
                          - reference
                        reference_type:
                          type:
                          - string
                          - 'null'
                        validation:
                          type:
                          - object
                          - 'null'
                          additionalProperties: true
                        default_format:
                          type:
                          - string
                          - 'null'
                        default_value:
                          $ref: '#/components/schemas/custom_field_value'
                        template_id:
                          type: string
                          format: uuid
                          description: ID of a Terminal49 template definition to copy.
                        reference_number:
                          type: boolean
                          description: Whether values are reference numbers. Terminal49 indexes reference-number values on account definitions for global search and document matching.
                          default: false
                        sensitive:
                          type: boolean
                          description: Whether the field is sensitive. Sensitive fields are hidden from recipients of externally shared container views.
                          default: false
                        inline_option_creation:
                          type: boolean
                          description: Whether users can add a new option while entering an `enum` or `enum_multi` value in the Terminal49 app.
                          default: false
                      description: Send `template_id`, or all of `entity_type`, `api_slug`, `display_name` and `data_type`. With `template_id`, the template supplies any of those four you leave out.
      description: Creates a custom field definition for your account. Pass `template_id` to copy a Terminal49 template; attributes you send override the template's values.
    servers:
    - url: https://api.terminal49.com/v2
      description: Production
components:
  schemas:
    error:
      title: Error model
      type: object
      properties:
        detail:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        source:
          type:
          - object
          - 'null'
          properties:
            pointer:
              type:
              - string
              - 'null'
            parameter:
              type:
              - string
              - 'null'
        code:
          type:
          - string
          - 'null'
        status:
          type:
          - string
          - 'null'
        meta:
          type:
          - object
          - 'null'
          additionalProperties: true
    custom_field_definition:
      title: Custom field definition
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          enum:
          - custom_field_definition
        attributes:
          type: object
          properties:
            entity_type:
              type: string
              enum:
              - Shipment
              - Cargo
              description: The entity type this definition applies to. `Cargo` means containers.
            api_slug:
              type: string
            display_name:
              type: string
            description:
              type:
              - string
              - 'null'
            data_type:
              type: string
              enum:
              - short_text
              - number
              - date
              - datetime
              - boolean
              - enum
              - enum_multi
              - reference
            reference_type:
              type:
              - string
              - 'null'
            validation:
              type:
              - object
              - 'null'
              additionalProperties: true
            default_format:
              type:
              - string
              - 'null'
            default_value:
              $ref: '#/components/schemas/custom_field_value'
            reference_number:
              type: boolean
              description: Whether values are reference numbers. Terminal49 indexes reference-number values on account definitions for global search and document matching.
            sensitive:
              type: boolean
              description: Whether the field is sensitive. Sensitive fields are hidden from recipients of externally shared container views.
            inline_option_creation:
              type: boolean
              description: Whether users can add a new option while entering an `enum` or `enum_multi` value in the Terminal49 app.
            template_id:
              type:
              - string
              - 'null'
              format: uuid
              description: ID of the Terminal49 template this definition was copied from.
            has_data:
              type: boolean
              description: Whether any entity has a value for this definition.
            created_at:
              type: string
              format: date-time
            updated_at:
              type: string
              format: date-time
            discarded_at:
              type:
              - string
              - 'null'
              format: date-time
              description: When the definition was archived.
          required:
          - entity_type
          - api_slug
          - display_name
          - data_type
        relationships:
          type: object
          properties:
            account:
              type: object
              description: The owning account. `null` for Terminal49 templates.
              properties:
                data:
                  type:
                  - object
                  - 'null'
                  required:
                  - type
                  - id
                  properties:
                    id:
                      type: string
                      format: uuid
                    type:
                      type: string
                      enum:
                      - account
            created_by:
              type: object
              description: The user who created the definition.
              properties:
                data:
                  type:
                  - object
                  - 'null'
                  required:
                  - type
                  - id
                  properties:
                    id:
                      type: string
                      format: uuid
                    type:
                      type: string
                      enum:
                      - user
            options:
              type: object
              properties:
                data:
                  type: array
                  items:
                    type: object
                    required:
                    - type
                    - id
                    properties:
                      id:
                        type: string
                        format: uuid
                      type:
                        type: string
                        enum:
                        - custom_field_option
      required:
      - id
      - type
    custom_field_value:
      description: Raw custom field value (type depends on definition)
      oneOf:
      - type:
        - string
        - 'null'
      - type: number
      - type: boolean
      - type: array
        items:
          type: string
      - type: object
        additionalProperties: true
    links:
      title: links
      type: object
      properties:
        self:
          type: string
        current:
          type: string
        first:
          type: string
        prev:
          type: string
        next:
          type: string
        last:
          type: string
      description: Pagination links. Each value is an absolute URL. `self` repeats the request URL as sent, including its query string and its encoding. `current`, `first`, `prev`, `next`, and `last` repeat the request's query parameters, with `page[number]` and `page[size]` in unencoded brackets.
    link-self:
      title: link
      type: object
      properties:
        self:
          type: string
          description: Absolute URL of the request, including its query string as sent. On a create, this is the collection URL the request was posted to, not the URL of the new resource.
    custom_field_definition_2:
      title: Custom field definition
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
          enum:
          - custom_field_definition
        attributes:
          type: object
          properties:
            entity_type:
              type: string
              enum:
              - Shipment
              - Container
              - TrackingRequest
            api_slug:
              type: string
            display_name:
              type: string
            description:
              type:
              - string
              - 'null'
            data_type:
              type: string
              enum:
              - short_text
              - number
              - date
              - datetime
              - boolean
              - enum
              - enum_multi
              - reference
            reference_type:
              type:
              - string
              - 'null'
            validation:
              type:
              - object
              - 'null'
              additionalProperties: true
            default_format:
              type:
              - string
              - 'null'
            default_value:
              $ref: '#/components/schemas/custom_field_value_2'
          required:
          - entity_type
          - api_slug
          - display_name
          - data_type
      required:
      - id
      - type
    custom_field_value_2:
      description: Raw custom field value (type depends on definition)
      oneOf:
      - type: string
      - type: number
      - type: boolean
      - type: array
        items:
          type: string
      - type: object
    meta:
      title: meta
      type: object
      properties:
        size:
          type: integer
        total:
          type: integer
    links_2:
      title: links
      type: object
      properties:
        last:
          type: string
          format: uri
        next:
          type: string
          format: uri
        prev:
          type: string
          format: uri
        first:
          type: string
          format: uri
        self:
          type: string
          format: uri
    link-self_2:
      title: link
      type: object
      properties:
        self:
          type: string
          format: uri
  responses:
    Unauthorized:
      description: Unauthorized. The API token is missing or invalid, or the account may not perform this action.
      content:
        application/json:
          schema:
            type: object
            properties:
              errors:
                type: array
                items:
                  $ref: '#/components/schemas/error'
          example:
            errors:
            - detail: You are not allowed to perform this action
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            type: object
            properties:
              errors:
                type: array
                items:
                  $ref: '#/components/schemas/error'
          example:
            errors:
            - status: '404'
              title: Not Found
    UnprocessableEntity:
      description: Unprocessable Entity
      content:
        application/json:
          schema:
            type: object
            properties:
              errors:
                type: array
                items:
                  $ref: '#/components/schemas/error'
          example:
            errors:
            - status: '422'
              source:
                pointer: /data/attributes/label
              title: Unprocessable Entity
              detail: Label can't be blank
              code: blank
  securitySchemes:
    authorization:
      name: Authorization
      type: apiKey
      in: header
      description: 'Use a Terminal49 API key in the `Authorization` header with the `Token` prefix.


        `Authorization: Token YOUR_API_KEY`'
x-refined-from:
- terminal49-docs-openapi.json
- terminal49-openapi.json
x-tagGroups:
- name: End Points
  tags:
  - Shipments
  - Containers
  - Custom Field Definitions
  - Custom Field Options
  - Custom Fields
  - Tracking Requests
  - Webhooks
  - Webhook Notifications
  - Metro Areas
  - Documents
  - Email Submissions
  - Document Schemas
  - Search
- name: Routing (Paid)
  tags:
  - Routing (Paid)
- name: Trade Intelligence
  tags:
  - Trade Intelligence