Document Directory

Account API

Query account information

POST/v1/me

Query current user account details.

Complete Address
https://deploy-demo.otranslator.com/api/v1/me
Authentication
API Key needs to be passed in the Authorization request header
Content-Type
application/json
Error Format
{ "error": "Invalid API key." }

Notes

This endpoint uses the API Key in the Authorization request header to identify the current account.

Example

1curl -X POST 'https://deploy-demo.otranslator.com/api/v1/me' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'

Response

ParametersTypeDefaultDescriptionExample
balanceInteger-

Remaining credits

-

Common Errors

401 Missing API key.

The Authorization request header is required.

401 Invalid API key.

The API key does not exist, has been deleted, or is no longer valid.

Glossary API
Delete glossary