---
title: "Get Messaging Sender Registration ID for Text Messaging Sender"
description: "How to call Get Messaging Sender Registration ID for Text Messaging Sender (GET /api/text-messaging-senders/{id}/relationships/text-messaging-sender-registration) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/get_messaging_sender_registration_id_for_text_messaging_sender"
revision: "2026-10-15"
operationId: "get_messaging_sender_registration_id_for_text_messaging_sender"
aliases: ["get_text_messaging_sender_relationships_messaging_sender_registration"]
method: "GET"
endpoint: "https://a.klaviyo.com/api/text-messaging-senders/{id}/relationships/text-messaging-sender-registration"
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_messaging_sender_registration_id_for_text_messaging_sender.json"
related: ["https://developers.klaviyo.com/en/reference/text-messaging/llms.txt","https://developers.klaviyo.com/en/reference/get_text_messaging_configuration.md","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"]
---

# Get Messaging Sender Registration ID for Text Messaging Sender

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

```http
GET https://a.klaviyo.com/api/text-messaging-senders/{id}/relationships/text-messaging-sender-registration
```

Return the most-recent registration for the given sender.

- 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_messaging_sender_registration_id_for_text_messaging_sender.json)

## Example request

### curl

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/text-messaging-senders/01HX2Z8RG7Y4PWFQK3V0M5N1B7/relationships/text-messaging-sender-registration' \
     --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-messaging-sender-registration-id-for-text-messaging-sender 01HX2Z8RG7Y4PWFQK3V0M5N1B7
```

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_messaging_sender_registration_id_for_text_messaging_sender("01HX2Z8RG7Y4PWFQK3V0M5N1B7")
```

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.getMessagingSenderRegistrationIdForTextMessagingSender('01HX2Z8RG7Y4PWFQK3V0M5N1B7')
```

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_messaging_sender_registration_id_for_text_messaging_sender('01HX2Z8RG7Y4PWFQK3V0M5N1B7')
```

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->getMessagingSenderRegistrationIdForTextMessagingSender('01HX2Z8RG7Y4PWFQK3V0M5N1B7');
```

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 of the text-messaging sender. Example: `01HX2Z8RG7Y4PWFQK3V0M5N1B7`

## 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, nullable)
  - `type` (string, required): Allowed values: `text-messaging-sender-registration`
  - `id` (string, required): The unique identifier for this sender registration. Example: `01HX2Z8RG7Y4PWFQK3V0M5N1C8`
- `links` (object)
  - `self` (string<uri>, required)
- `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-sender-registration",
    "id": "01HX2Z8RG7Y4PWFQK3V0M5N1C8"
  },
  "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"
      }
    }
  ]
}
```
