> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Status of a write

> Whether a write has finished. Both `ingest` and `remember` return an `operation_id`, and a memory is not recallable until its operation completes — extraction, embedding and consolidation all run first.



## OpenAPI

````yaml /openapi/source/external/agent-memory/agent-memory.json get /ai/memory/namespaces/{namespace}/operations/{operation_id}
openapi: 3.1.0
info:
  version: 1.0.0
  title: Telnyx API
  x-latency-category: interactive
  x-endpoint-cost: light
  description: >-
    Long-term memory for AI agents. A profile per user, caller, or agent: write
    memories in with `ingest` or `remember`, and recall them with `recall`.
    Facts are extracted, and contradictions resolve to the newest.
servers:
  - url: https://api.telnyx.com/v2
    description: Telnyx API v2
security:
  - bearerAuth: []
tags:
  - name: Memory
    description: Write memories into a profile and recall them.
  - name: Profiles
    description: What a namespace and a profile hold.
  - name: Sources
    description: What a profile stored, and what its memories came from.
  - name: Operations
    description: Whether a write has finished.
  - name: Settings
    description: How a namespace's summaries are written.
paths:
  /ai/memory/namespaces/{namespace}/operations/{operation_id}:
    get:
      tags:
        - Operations
      summary: Status of a write
      description: >-
        Whether a write has finished. Both `ingest` and `remember` return an
        `operation_id`, and a memory is not recallable until its operation
        completes — extraction, embedding and consolidation all run first.
      operationId: GetMemoryOperation
      parameters:
        - name: operation_id
          in: path
          required: true
          schema:
            type: string
            title: Operation Id
        - name: namespace
          in: path
          required: true
          schema:
            type: string
            title: Namespace
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
              example:
                data:
                  operation_id: op_01HZY4M7Q9
                  status: completed
                  created_at: '2026-08-26T21:14:07Z'
                  completed_at: '2026-08-26T21:14:11Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
              example:
                errors:
                  - code: '10009'
                    title: Authentication failed
                    detail: Could not find any usable credentials in the request.
                    source:
                      pointer: /
                    meta:
                      url: https://developers.telnyx.com/docs/overview/errors/10009
        '404':
          description: The operation does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
              example:
                errors:
                  - code: operation_not_found
                    detail: no such operation
        '502':
          description: Upstream error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxErrors'
              example:
                errors:
                  - code: upstream_error
                    detail: the memory dataplane is unavailable
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Telnyx from 'telnyx';


            const client = new Telnyx({
              apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
            });


            const Operation = await
            client.ai.memory.namespaces.retrieve('namespace', 'operation_id');


            console.log(Operation.data);
        - lang: Python
          source: |
            import os
            from telnyx import Telnyx

            client = Telnyx(
                api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
            )
            operation = client.ai.memory.namespaces.retrieve(
                "namespace",
                "operation_id",
            )
            print(operation.data)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/team-telnyx/telnyx-go\"\n\t\"github.com/team-telnyx/telnyx-go/option\"\n)\n\nfunc main() {\n\tclient := telnyx.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tnamespace, err := client.AI.Memory.Namespaces.Get(\n\t\tcontext.TODO(),\n\t\t\"namespace\",\n\t\t\"operation_id\",\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", namespace.Data)\n}\n"
        - lang: Java
          source: |-
            package com.telnyx.sdk.example;

            import com.telnyx.sdk.client.TelnyxClient;
            import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;

            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    TelnyxClient client = TelnyxOkHttpClient.fromEnv();

                    var response = client.ai().memory().namespaces().retrieve("namespace", "operation_id");
                }
            }
        - lang: Ruby
          source: >-
            require "telnyx"


            telnyx = Telnyx::Client.new(api_key: "My API Key")


            operation = telnyx.ai.memory.namespaces.retrieve("namespace",
            "operation_id")


            puts(operation)
        - lang: PHP
          source: >-
            <?php


            require_once dirname(__DIR__) . '/vendor/autoload.php';


            use Telnyx\Client;

            use Telnyx\Core\Exceptions\APIException;


            $client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API
            Key');


            try {
              $operation = $client->ai->memory->namespaces->retrieve(
                'namespace',
                'operation_id',
              );

              var_dump($operation);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx ai:memory:namespaces retrieve \
              --api-key 'My API Key' \
              --namespace namespace \
              --operation-id operation_id
components:
  schemas:
    OperationResponse:
      properties:
        data:
          $ref: '#/components/schemas/Operation'
      type: object
      required:
        - data
      title: OperationResponse
    TelnyxErrors:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/TelnyxError'
    Operation:
      properties:
        operation_id:
          type: string
          title: Operation Id
        status:
          type: string
          title: Status
          description: >-
            Where the write is. `completed`, `failed` and `cancelled` are
            terminal: stop polling at any of them, and treat `failed` and
            `cancelled` as writes that did not happen.
          enum:
            - pending
            - processing
            - completed
            - failed
            - cancelled
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
      type: object
      required:
        - operation_id
        - status
      title: Operation
    TelnyxError:
      type: object
      properties:
        code:
          type: string
        title:
          type: string
        detail:
          type: string
        source:
          type: object
          properties:
            pointer:
              type: string
        meta:
          type: object
          properties:
            url:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Telnyx API key

````