API 개요로 돌아가기

echo

POST1 크레딧

A reference endpoint that returns the JSON body you sent, plus a server-side timestamp. Useful for testing your client setup, latency, and credit accounting before integrating the production endpoints.

엔드포인트

POST https://x114.org/api/v1/echo

요청 본문

POST 본문에 JSON으로 전송합니다.

NameTypeRequiredDescription
anyobject | array | string | number | boolean | nulloptionalAny JSON value. The server returns it verbatim.

응답 본문

성공 시 반환되는 JSON (HTTP 200).

NameTypeRequiredDescription
okbooleanrequiredAlways true on success.
receivedAtstring (ISO 8601)requiredServer timestamp when the request was received.
bodyunknownrequiredThe original JSON body you sent.

예시

curl -X POST https://x114.org/api/v1/echo \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{"hello":"world"}'