---
title: "Get Text Messaging Configuration"
description: "How to call Get Text Messaging Configuration (GET /api/text-messaging-configurations/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/get_text_messaging_configuration"
revision: "2026-10-15"
operationId: "get_text_messaging_configuration"
method: "GET"
endpoint: "https://a.klaviyo.com/api/text-messaging-configurations/{id}"
authentication: "privateKey"
scopes: ["sender-config:read"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_text_messaging_configuration.json"
jsonApi: {"fields":{"text-messaging-configuration":["created_at","id","opt_out_language","org_prefix","status","updated_at"]}}
related: ["https://developers.klaviyo.com/en/reference/text-messaging/llms.txt","https://developers.klaviyo.com/en/reference/create_text_messaging_configuration.md","https://developers.klaviyo.com/en/reference/get_text_messaging_senders.md","https://developers.klaviyo.com/en/reference/get_text_messaging_sender.md","https://developers.klaviyo.com/en/reference/create_text_messaging_sender.md","https://developers.klaviyo.com/en/reference/get_text_messaging_sender_registration.md","https://developers.klaviyo.com/en/reference/create_text_messaging_sender_registration.md","https://developers.klaviyo.com/en/reference/get_messaging_sender_registration_for_text_messaging_sender.md","https://developers.klaviyo.com/en/reference/get_messaging_sender_registration_id_for_text_messaging_sender.md"]
---

# Get Text Messaging Configuration

> This is the Markdown version of https://developers.klaviyo.com/en/reference/get_text_messaging_configuration

```http
GET https://a.klaviyo.com/api/text-messaging-configurations/{id}
```

Retrieve the SMS account for the calling company.

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `sender-config:read`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/get_text_messaging_configuration.json)

## Example request

### curl

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/text-messaging-configurations/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15'
```

### CLI

```bash
klaviyo text-messaging get-text-messaging-configuration id
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Text_Messaging.get_text_messaging_configuration("id")
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, TextMessagingApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const textMessagingApi = new TextMessagingApi(session)

const response = await textMessagingApi.getTextMessagingConfiguration('id')
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::TextMessaging.get_text_messaging_configuration('id')
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->TextMessaging->getTextMessagingConfiguration('id');
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Path parameters

- `id` (string, required): The unique identifier for this text messaging configuration (must equal the caller's company id).

## Query parameters

- `fields[text-messaging-configuration]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `created_at`, `id`, `opt_out_language`, `org_prefix`, `status`, `updated_at`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `text-messaging-configuration`
  - `id` (string, required): The unique identifier for this text messaging configuration.
  - `attributes` (object, required)
    - `org_prefix` (string, required): Branding prefix prepended to outbound messages for sender identification, as saved with any HTML removed. Up to 50 characters. Example: `Acme`
    - `opt_out_language` (string, required): Opt-out instruction text appended to outbound messages.
    - `status` (string, required): The lifecycle status of this text messaging configuration. Allowed values: `active`, `disabled`
    - `created_at` (string<date-time>, required): ISO8601 timestamp when the configuration was created. Example: `2026-05-19T14:30:00Z`
    - `updated_at` (string<date-time>, required): ISO8601 timestamp when the configuration was last updated. Example: `2026-05-19T14:30:00Z`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": {
    "type": "text-messaging-configuration",
    "id": "string",
    "attributes": {
      "org_prefix": "Acme",
      "opt_out_language": "string",
      "status": "active",
      "created_at": "2026-05-19T14:30:00Z",
      "updated_at": "2026-05-19T14:30:00Z"
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
