# API Reference

<figure><img src="/files/UfJAph5reTlUud755Qmn" alt=""><figcaption></figcaption></figure>

แนะนำข้อมูลเบื้องต้นเกี่ยวกับหลักการทำงานของ API ของ Cyber rich SMS ในการส่งข้อความ จัดการบัญชีต่างๆ

### Base URL

```
Base URL: https://api.cyberrichsms.com/api
```

เราแนะนำให้เรียกใช้งานทุก Request มาที่ Base URL ผ่าน HTTP POST, GET method

###

### Content-Type และ Accept ใน API Cyberrich SMS

\
เมื่อทำการติดต่อกับ API Cyber rich SMS นั้น การปฏิบัติตามหลักการที่ดีที่สุดและให้ความสำคัญในการร้องขอของคุณจะช่วยให้ความเป็นมืออาชีพและความเสถียรในการดำเนินการกับ API นี้

API รองรับรูปแบบข้อมูล JSON ดังนั้น ควรระบุหัวข้อ Content-Type และ Accept ในคำขอ (Request) ของคุณให้ถูกต้อง

เพื่อให้เกิดการสื่อสารอย่างราบรื่นและหลีกเลี่ยงข้อผิดพลาด ให้ตรวจสอบการระบุหัวข้อต่อไปนี้ในคำขอของคุณ:

Content-Type:&#x20;

```
Content-Type: application/json
```

&#x20;Accept :

```
Accept: application/json
```

***

## Authentication

{% content-ref url="/pages/C4GdoQ4LH0wwa8K5ZwFb" %}
[Authentication](/api-reference/authentication.md)
{% endcontent-ref %}

## Cyber rich SMS

{% content-ref url="/pages/r3adKI0Pn2cgleDOqXCW" %}
[เมนู SMS - Service](/api-reference/sms-service.md)
{% endcontent-ref %}

## Cyber rich OTP

{% content-ref url="/pages/6rBzsr5840r4ec0opumx" %}
[เมนู OTP - Service](/api-reference/otp-service.md)
{% endcontent-ref %}

##


---

# 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://gitbook.cyberrichsms.com/api-reference.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.
