# Search for Single Message log

### <mark style="color:green;">`GET`</mark> `/message/:id`

Search for a Single message log using an id.&#x20;

{% tabs %}
{% tab title="Curl" %}

```hsts
curl -X GET \
"https://api.mobivatebulksms.com/message/9A0C23DD0A000A9D2FBD4671D780AFDA" \
-H 'Authorization: Bearer [API Key]'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

headers = {
    'Authorization': 'Bearer [API Key]',
}

response = requests.get('https://api.mobivatebulksms.com/message/9A0C23DD0A000A9D2FBD4671D780AFDA', headers=headers)
```

{% endtab %}
{% endtabs %}

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer [API Key]` |

**Body**

<table><thead><tr><th>Name</th><th width="131">Type</th><th width="111">Required?</th><th>Description</th></tr></thead><tbody><tr><td>id</td><td>string</td><td>No</td><td>The unique message id.</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
   "id":"9A0C23DD0A000A9D2FBD4671D780AFDA",
   "created":"2023-07-01T01:10:34+0000",
   "modified":"2023-07-01T01:10:39+0000",
   "originator":"Sender ID",
   "recipient":"4400011223",
   "body":"Test Message 1",
   "status":"DELIVERED",
   "direction":"MT",
   "inReplyTo":null,
   "routeId":"mglobal",
   "parts":1,
   "cost":0.01,
   "currency":"GBP",
   "senderReference":"ref-001",
   "campaignId":null
}
```

{% endtab %}

{% tab title="401" %}

```json
{
   "code":401,
   "message":"Unauthorized"
}
```

{% endtab %}

{% tab title="404" %}

```json
{
   "code":404,
   "message":"Not Found"
}
```

{% endtab %}
{% endtabs %}

We use conventional HTTP response codes to indicate the success or failure of an API request. In general:

**2xx** indicate success\
**4xx** indicate an error that failed given the information provided (e.g., a required parameter was omitted)\
**5xx** errors indicate an error with ours servers (these are rare).

To see a full list of our **Response codes**, please [click here](/overview/introduction/understanding-response-codes.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.mobivatebulksms.com/archived-docs/search-for-single-message-log.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
