> ## 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.

# Retrieve a Stateful Actor type

> Retrieve one account-scoped Stateful Actor type. owner_function_id identifies the function that owns and ships the actor class; other functions may reference the same actor type through actor bindings.



## OpenAPI

````yaml /openapi/source/external/edge-compute/edge-compute.json get /compute/actors/{id}
openapi: 3.1.0
info:
  description: >-
    Edge Compute storage: KV namespaces and keys, SQL databases, and CloudFS
    filesystems.
  title: Edge Compute API
  contact: {}
  version: '1.0'
  x-endpoint-cost: light
  x-latency-category: responsive
servers:
  - url: https://api.telnyx.com/v2
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: kv namespaces
    description: Manage KV storage namespaces
  - name: kv keys
    description: Read and write keys within a KV namespace
  - name: sql databases
    description: Manage SQL databases and run SQL against them
  - name: cloudfs filesystems
    description: >-
      Manage CloudFS filesystems — JuiceFS-compatible filesystems backed by
      Telnyx Cloud Storage
  - name: functions
    description: Manage Edge Compute functions
  - name: stateful actors
    description: Inspect Stateful Actor types
paths:
  /compute/actors/{id}:
    get:
      tags:
        - stateful actors
      summary: Retrieve a Stateful Actor type
      description: >-
        Retrieve one account-scoped Stateful Actor type. owner_function_id
        identifies the function that owns and ships the actor class; other
        functions may reference the same actor type through actor bindings.
      operationId: GetComputeActor
      parameters:
        - name: id
          in: path
          required: true
          description: Actor type ID
          schema:
            type: string
      responses:
        '200':
          description: Actor type retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComputeActorTypeResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '404':
          description: Actor type not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '422':
          description: Invalid actor type ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErrorResponse'
      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 ComputeActorType = await client.compute.retrieve('id');

            console.log(ComputeActorType.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
            )
            compute_actor_type = client.compute.retrieve(
                "id",
            )
            print(compute_actor_type.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\tcompute, err := client.Compute.Get(\n\t\tcontext.TODO(),\n\t\t\"id\",\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", compute.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.compute().retrieve("id");
                }
            }
        - lang: Ruby
          source: |-
            require "telnyx"

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

            compute_actor_type = telnyx.compute.retrieve("id")

            puts(compute_actor_type)
        - 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 {
              $compute_actor_type = $client->compute->retrieve(
                'id',
              );

              var_dump($compute_actor_type);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx compute retrieve \
              --api-key 'My API Key' \
              --id id
components:
  schemas:
    ComputeActorTypeResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/ComputeActorType'
    Errors:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
    GenericErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
    ComputeActorType:
      type: object
      properties:
        record_type:
          type: string
          example: compute_actor_type
        id:
          type: string
        type:
          type: string
          example: Counter
        status:
          type: string
        owner_function_id:
          type: string
          description: >-
            ID of the function that owns and ships this actor type. Empty when
            the type is unowned.
        created_at:
          type: string
        updated_at:
          type: string
        placement:
          $ref: '#/components/schemas/ActorPlacement'
    Error:
      type: object
      properties:
        code:
          type: string
          example: '10005'
        detail:
          type: string
          example: The requested function does not exist or you don't have access to it
        meta:
          $ref: '#/components/schemas/ErrorMeta'
        source:
          $ref: '#/components/schemas/ErrorSource'
        title:
          type: string
          example: Function not found
    ActorPlacement:
      type: object
      description: >-
        Last deployment fan-out report, not a live probe. Omitted on actor types
        without a placement-aware deployment.
      properties:
        policy:
          type: string
          enum:
            - everywhere
            - single_site
        clusters:
          type: array
          items:
            type: string
          description: Public regions with successful deployment
        excluded_clusters:
          type: array
          items:
            type: string
        unchecked_clusters:
          type: array
          items:
            type: string
        partial:
          type: boolean
        observed_at:
          type: string
          description: Optional ISO-8601 millisecond timestamp
        cluster_results:
          type: array
          items:
            $ref: '#/components/schemas/ActorClusterResult'
    ErrorMeta:
      type: object
      properties:
        url:
          type: string
          example: https://docs.telnyx.com/api/errors/10005
    ErrorSource:
      type: object
      properties:
        parameter:
          type: string
          example: id
        pointer:
          type: string
          example: /id
    ActorClusterResult:
      type: object
      properties:
        cluster_id:
          type: string
          description: Public region, or unknown when no mapping exists
        status:
          type: string
        success:
          type: boolean
        error:
          type: string
        error_code:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````