SAP Emarsys Field API

The Field API from SAP Emarsys — 5 operation(s) for field.

Operations 5

POST /v2/field Create a Field #
GET /v2/field/translate/{languageId} List Available Fields #
GET /v2/field/{fieldID}/choice/translate/{languageId} List Available Choices of a Single-choice Field #
GET /v2/field/choices List Available Choices of a Multiple-choice Field #
DELETE /v2/field/{fieldId} Delete a Field #

Documentation

📖
Documentation
https://dev.emarsys.com/
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/43noz8h08gqdv-emarsys-core-api-accounts-endpoint-batch
📖
Authentication
https://dev.emarsys.com/docs/emarsys-core-api-guides/b3c3a1eba8515-authentication
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/vq6ozhk87xpct-emarsys-core-api-auto-import-profiles-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/b8bkfdpzdnrmn-bulk-response-summary
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/f2udgdha9qqax-emarsys-core-api-conditional-text-rules-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/jxv7xghhduivk-emarsys-core-api-contact-and-email-data-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/czeg4wbctz2ey-emarsys-core-api-contact-lists-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/nbmm6cavfbful-emarsys-core-api-contact-sources-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/vhlytrvjmpva3-emarsys-core-api-contacts-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/111vbiacis1pw-emarsys-core-api-email-campaign-lifecycle-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/9mp221uux5ijk-emarsys-core-api-email-campaigns-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/jntjf6yd8bbyp-email-reporting-api
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/ywep93d8zjj38-emarsys-core-api-email-templates-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/a9elofmiccck4-emarsys-core-api-events-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/7nxw96vrmb8uy-emarsys-core-api-external-content-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/mtzemy547drl7-emarsys-core-api-fields-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/k53pb4h4cekls-emarsys-core-api-forms-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/j2c7sbanej44c-emarsys-core-api-keys-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/o26j9gs8fjm9q-emarsys-core-api-media-database-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/mzyq7rihy8uv9-emarsys-core-api-programs-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/0h26fkyuh837z-emarsys-core-api-relational-data-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/14tmor5bfxbov-emarsys-core-api-sections-endpoint-batch
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/ehr0tded4ctcw-emarsys-core-api-segments-endpoint-batch
📖
APIReference
https://emartech.github.io/sms-partner-api-spec/
📖
APIReference
https://dev.emarsys.com/docs/core-api-reference/4kmyl4vlpf9mv-emarsys-core-api-tracked-links-endpoint-batch

Specifications

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/emarsys-field-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

emarsys-field-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Emarsys Core API - Fields endpoint batch Field API
  description: In this batch you may find endpoints related to fields.
  version: v2
servers:
- url: https://api.emarsys.net/api
tags:
- name: Field
paths:
  /v2/field:
    post:
      summary: Create a Field
      description: 'Creates a new field in the contact database. Please note that you cannot create single- or multi-choice fields via the API, nor can you create more than one field at a time.


        **Note:** The endpoint replicates the functionality of the **Field Generator** in the Emarsys application. To manage fields, go to **Admin** > **Field Editor** > **Create Field**.'
      operationId: createField
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                description: See the example or [Response Codes](docs/response-codes/error-codes.md) for details.
                additionalProperties: false
                properties:
                  replyCode:
                    type: integer
                    description: The Emarsys [response code](docs/response-codes/error-codes.md).
                    format: int32
                  replyText:
                    type: string
                    description: The summary of the [response](docs/response-codes/error-codes.md).
                  data:
                    type: object
                    description: The requested data.
                    properties:
                      id:
                        type: integer
                        description: The identifier of the new field.
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/default-response'
      security:
      - X-WSSE: []
      servers:
      - url: https://api.emarsys.net/api
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The unique name of the new field.
                application_type:
                  type: string
                  enum:
                  - shorttext
                  - longtext
                  - largetext
                  - date
                  - url
                  - numeric
                  description: 'The type of the new field.


                    **Supported values:**

                    | Type | Description |

                    | --- | --- |

                    | shorttext | Text field, maxiumum 60 characters |

                    |longtext| Text field, maximum 255 characters |

                    |largetext| Text field, no limitations |

                    |date| Date field |

                    |url| URL field |

                    |numeric| Numeric field, maxiumum 24 digits |


                    **Note:** Single- and multichoice fields are not supported.'
              required:
              - name
              - application_type
              x-examples:
              - name: The name of the new field
                application_type: shorttext
      tags:
      - Field
  /v2/field/translate/{languageId}:
    get:
      summary: List Available Fields
      description: Generates a list of the available contact fields.
      operationId: listAvailableFields
      parameters:
      - name: languageId
        in: path
        description: 'The two-letter ISO 639-1 language code. See available [language codes](docs/appendix/language-codes.md).


          **Note:** Using the `/field` URI without the `translate/{languageId}` path returns the default English fields.'
        required: true
        schema:
          type: string
          enum:
          - ar
          - bg
          - bp
          - cn
          - cz
          - de
          - dk
          - el
          - en
          - es
          - et
          - fi
          - fr
          - he
          - hi
          - hr
          - hu
          - it
          - jp
          - ko
          - lt
          - lv
          - mk
          - mo
          - mx
          - nl
          - 'no'
          - pl
          - pr
          - ro
          - ru
          - sc
          - sk
          - sl
          - sr
          - sv
          - th
          - tr
          - uk
          - vi
          default: en
          maxLength: 2
          minLength: 2
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                description: See the example or [Response Codes](docs/response-codes/error-codes.md) for details.
                additionalProperties: false
                properties:
                  replyCode:
                    type: integer
                    description: The Emarsys [response code](docs/response-codes/error-codes.md).
                    format: int32
                  replyText:
                    type: string
                    description: The summary of the [response](docs/response-codes/error-codes.md).
                  data:
                    type: array
                    description: The requested data.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: The field identifier.
                        name:
                          type: string
                          description: The field name.
                        application_type:
                          type: string
                          description: The field type.
                        string_id:
                          type: string
                          description: identifier of the string
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/default-response'
      security:
      - X-WSSE: []
      servers:
      - url: https://api.emarsys.net/api
      tags:
      - Field
  /v2/field/{fieldID}/choice/translate/{languageId}:
    get:
      summary: List Available Choices of a Single-choice Field
      description: "Gives you a list of all available options for any given single or multi-choice field.\n\n**Tip**:  See [List customer forms](/reference/openapi.json/paths/~1v2~1form/get) for how to list forms and newsletters.\n\n If you want to update a contact's single choice field, use this endpoint to find out the relevant `choice` identifier."
      operationId: listAvailableChoicesOfASingleField
      parameters:
      - name: fieldID
        in: path
        description: The field identifier.
        required: true
        schema:
          type: integer
      - name: languageId
        in: path
        description: 'The two-letter ISO 639-1 language code. See available [language codes](docs/appendix/language-codes.md).


          **Note:** Using the `/field/{fieldId}/choice` URI without the `translate/{languageId}` path returns the default English fields.'
        required: true
        schema:
          type: string
          enum:
          - ar
          - bg
          - bp
          - cn
          - cz
          - de
          - dk
          - el
          - en
          - es
          - et
          - fi
          - fr
          - he
          - hi
          - hr
          - hu
          - it
          - jp
          - ko
          - lt
          - lv
          - mk
          - mo
          - mx
          - nl
          - 'no'
          - pl
          - pr
          - ro
          - ru
          - sc
          - sk
          - sl
          - sr
          - sv
          - th
          - tr
          - uk
          - vi
          default: en
          maxLength: 2
          minLength: 2
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                description: See the example or [Response Codes](docs/response-codes/error-codes.md) for details.
                additionalProperties: false
                properties:
                  replyCode:
                    type: integer
                    description: The Emarsys [response code](docs/response-codes/error-codes.md).
                    format: int32
                  replyText:
                    type: string
                    description: The summary of the [response](docs/response-codes/error-codes.md).
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        choice:
                          type: string
                        bit_position:
                          type: integer
                          description: 'The position of an element in a multi-choice field.


                            **Note:** The `bit_position` value of a choice is not the same as the choice `id`.'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/default-response'
      security:
      - X-WSSE: []
      servers:
      - url: https://api.emarsys.net/api
      tags:
      - Field
  /v2/field/choices:
    get:
      summary: List Available Choices of a Multiple-choice Field
      description: 'Generates a list of all available options for the specified multi-choice field.


        **Tip**:  See [List customer forms](/reference/openapi.json/paths/~1v2~1form/get) for how to list forms and newsletters.'
      operationId: listAvailableChoicesOfMultipleField
      parameters:
      - name: fields
        in: query
        description: The field identifier.
        required: true
        schema:
          type: integer
      - name: language
        in: query
        description: 'The two-letter ISO 639-1 language code. For available language codes, see [Language codes](docs/appendix/language-codes.md).


          **Note:** Using the `/field/{fieldId}/choice` URI without the `translate/{languageId}` path returns the default English fields.'
        required: true
        schema:
          type: string
          enum:
          - ar
          - bg
          - bp
          - cn
          - cz
          - de
          - dk
          - el
          - en
          - es
          - et
          - fi
          - fr
          - he
          - hi
          - hr
          - hu
          - it
          - jp
          - ko
          - lt
          - lv
          - mk
          - mo
          - mx
          - nl
          - 'no'
          - pl
          - pr
          - ro
          - ru
          - sc
          - sk
          - sl
          - sr
          - sv
          - th
          - tr
          - uk
          - vi
          default: en
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                description: See the example or [Response Codes](docs/response-codes/error-codes.md) for details.
                additionalProperties: false
                properties:
                  replyCode:
                    type: integer
                    description: The Emarsys [response code](docs/response-codes/error-codes.md).
                    format: int32
                  replyText:
                    type: string
                    description: The summary of the [response](docs/response-codes/error-codes.md).
                  data:
                    type: object
                    properties:
                      '{fieldId}':
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            choice:
                              type: string
                            bit_position:
                              type: integer
                              description: 'The position of an element in a multi-choice field.


                                **Note:** The `bit_position` value of a choice is not the same as the choice `id`.'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/default-response'
      security:
      - X-WSSE: []
      servers:
      - url: https://api.emarsys.net/api
      tags:
      - Field
  /v2/field/{fieldId}:
    delete:
      summary: Delete a Field
      description: 'Deletes a custom contact field.


        **Important:** This action cannot be reverted, and removes all existing contact data associated with the field.'
      operationId: deleteField
      parameters:
      - name: fieldId
        in: path
        description: The identifier of the field to be deleted.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/default-response'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/default-response'
        '404':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/default-response'
      security:
      - X-WSSE: []
      servers:
      - url: https://api.emarsys.net/api
      tags:
      - Field
components:
  schemas:
    default-response:
      type: object
      title: Default Response
      description: 'See the following documents for details on the error codes:


        - [HTTP 200 errors](docs/response-codes/http-200-responses.md)

        - [HTTP 400 errors](docs/response-codes/http-400-errors.md)

        - [HTTP 401-429 errors](docs/response-codes/http-401-429-errors.md)

        - [HTTP 500 errors](docs/response-codes/http-500-errors.md)'
      properties:
        replyCode:
          type: integer
          description: The Emarsys response code. Successful requests return *0*; otherwise, see [errors](docs/response-codes/http-400-errors.md).
          default: 0
        replyText:
          type: string
          description: Additional information on the status of the request.
        data:
          description: Contains the requested data, if applicable.
          oneOf:
          - type: string
          - type: integer
          - {}
          - type: object
            properties:
              ? ''
              : type: object
      x-examples:
      - replyCode: 0
        replyText: OK
        data: {}
  securitySchemes:
    X-WSSE:
      type: apiKey
      name: X-WSSE
      in: header