Amazon Timestream Write API

Operations for writing time series data.

GitHub OpenAPI

Operations 1

POST /#WriteRecords Write Records #

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-timestream:amazon-timestream-write-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-timestream-write-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Timestream Query Write API
  version: '2018-11-01'
  description: Generated from AWS's published Smithy model for Amazon Timestream Query. 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://ingest.timestream.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#WriteRecords:
    post:
      operationId: WriteRecords
      summary: Write Records
      description: Enables you to write your time-series data into Timestream. You can specify a single data point or a batch
        of data points to be inserted into the system. Timestream offers you a flexible schema that auto detects the column
        names and data types for your Timestream tables based on the dimension names and data types of the data points you
        specify when invoking writes into the database. Timestream supports eventual consistency read semantics. This means
        that when you query data immediately after writing a batch of data into Timestream, the query results might not reflect
        the results of a recently completed write operation. The results may also include some stale data. If you repeat the
        query request after a short time, the results should return the latest data. Service quotas apply. See code sample
        for details. Upserts You can use the Version parameter in a WriteRecords request to update data points. Timestream
        tracks a version number with each record. Version defaults to 1 when it's not specified for the record in the request.
        Timestream updates an existing record’s measure value along with its Version when it receives a write request with
        a higher Version number for that record. When
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/WriteRecordsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/IngestTimestreamAccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/IngestTimestreamInternalServerException'
        '421':
          description: InvalidEndpointException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/InvalidEndpointException'
        '419':
          description: RejectedRecordsException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/RejectedRecordsException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/IngestTimestreamResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/IngestTimestreamThrottlingException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.0:
              schema:
                $ref: '#/components/schemas/IngestTimestreamValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - Timestream_20181101.WriteRecords
      requestBody:
        required: true
        content:
          application/x-amz-json-1.0:
            schema:
              $ref: '#/components/schemas/WriteRecordsRequest'
      tags:
      - Write
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: timestream
  schemas:
    Dimension:
      type: object
      properties:
        Name:
          type: string
          description: Dimension represents the metadata attributes of the time series. For example, the name and Availability
            Zone of an EC2 instance or the name of the manufacturer of a wind turbine are dimensions. For constraints on dimension
            names, see Naming Constraints.
        Value:
          type: string
          description: The value of the dimension.
        DimensionValueType:
          type: string
          enum:
          - VARCHAR
          description: The data type of the dimension for the time-series data point.
      required:
      - Name
      - Value
    IngestTimestreamAccessDeniedException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    IngestTimestreamInternalServerException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    IngestTimestreamResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
    IngestTimestreamThrottlingException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    IngestTimestreamValidationException:
      type: object
      properties:
        Message:
          type: string
      required:
      - Message
    InvalidEndpointException:
      type: object
      properties:
        Message:
          type: string
    MeasureValue:
      type: object
      properties:
        Name:
          type: string
          description: The name of the MeasureValue. For constraints on MeasureValue names, see Naming Constraints in the
            Amazon Timestream Developer Guide.
        Value:
          type: string
          description: The value for the MeasureValue. For information, see Data types.
        Type:
          type: string
          enum:
          - DOUBLE
          - BIGINT
          - VARCHAR
          - BOOLEAN
          - TIMESTAMP
          - MULTI
          description: Contains the data type of the MeasureValue for the time-series data point.
      required:
      - Name
      - Value
      - Type
    Record:
      type: object
      properties:
        Dimensions:
          type: array
          items:
            $ref: '#/components/schemas/Dimension'
          description: Contains the list of dimensions for time-series data points.
        MeasureName:
          type: string
          description: Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2
            instance or the RPM of a wind turbine are measures.
        MeasureValue:
          type: string
          description: Contains the measure value for the time-series data point.
        MeasureValueType:
          type: string
          enum:
          - DOUBLE
          - BIGINT
          - VARCHAR
          - BOOLEAN
          - TIMESTAMP
          - MULTI
          description: Contains the data type of the measure value for the time-series data point. Default type is DOUBLE.
            For more information, see Data types.
        Time:
          type: string
          description: Contains the time at which the measure value for the data point was collected. The time value plus
            the unit provides the time elapsed since the epoch. For example, if the time value is 12345 and the unit is ms,
            then 12345 ms have elapsed since the epoch.
        TimeUnit:
          type: string
          enum:
          - MILLISECONDS
          - SECONDS
          - MICROSECONDS
          - NANOSECONDS
          description: The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds,
            nanoseconds, or other supported values. Default is MILLISECONDS.
        Version:
          type: integer
          description: 64-bit attribute used for record updates. Write requests for duplicate data with a higher version number
            will update the existing measure value and version. In cases where the measure value is the same, Version will
            still be updated. Default value is 1. Version must be 1 or greater, or you will receive a ValidationException
            error.
        MeasureValues:
          type: array
          items:
            $ref: '#/components/schemas/MeasureValue'
          description: Contains the list of MeasureValue for time-series data points. This is only allowed for type MULTI.
            For scalar values, use MeasureValue attribute of the record directly.
    RecordsIngested:
      type: object
      properties:
        Total:
          type: integer
          description: Total count of successfully ingested records.
        MemoryStore:
          type: integer
          description: Count of records ingested into the memory store.
        MagneticStore:
          type: integer
          description: Count of records ingested into the magnetic store.
    RejectedRecord:
      type: object
      properties:
        RecordIndex:
          type: integer
          description: The index of the record in the input request for WriteRecords. Indexes begin with 0.
        Reason:
          type: string
          description: 'The reason why a record was not successfully inserted into Timestream. Possible causes of failure
            include: Records with duplicate data where there are multiple records with the same dimensions, timestamps, and
            measure names but: Measure values are different Version is not present in the request, or the value of version
            in the new record is equal to or lower than the existing value If Timestream rejects data for this case, the ExistingVersion
            field in the RejectedRecords response will indicate the current record’s version. To force an update, you can
            resend the request with a version for the re'
        ExistingVersion:
          type: integer
          description: The existing version of the record. This value is populated in scenarios where an identical record
            exists with a higher version than the version in the write request.
    RejectedRecordsException:
      type: object
      properties:
        Message:
          type: string
        RejectedRecords:
          type: array
          items:
            $ref: '#/components/schemas/RejectedRecord'
    WriteRecordsRequest:
      type: object
      properties:
        DatabaseName:
          type: string
          description: The name of the Timestream database.
        TableName:
          type: string
          description: The name of the Timestream table.
        CommonAttributes:
          $ref: '#/components/schemas/Record'
        Records:
          type: array
          items:
            $ref: '#/components/schemas/Record'
          description: An array of records that contain the unique measure, dimension, time, and version attributes for each
            time-series data point.
      required:
      - DatabaseName
      - TableName
      - Records
    WriteRecordsResponse:
      type: object
      properties:
        RecordsIngested:
          $ref: '#/components/schemas/RecordsIngested'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/timestream-write/service/2018-11-01/timestream-write-2018-11-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)