πŸ“˜Reference

This Open API Solwrite V1 BETA Version, to execute this API please get API Key

Get Account

POST https://api.solwrite.tech/v1/getAccount

Header Request

Name
Type
Description

API_KEY*

string

Your Api Key

Content-Type

string

application/json

Response

Upon a successful request, you will receive a response containing the account information. The response format is as follows:

{
  "accountId": "your_account_id_here",
  "accountName": "name_of_the_account",
  "quota": 1000,
  "allow_models": [
            {
              "model_id": "tga-1",
              "description": "Chat AI",
            }
  ]
}
  • accountId: The ID of the account.

  • accountName: The registered name of the account.

  • quota: The current request quota of the account.

Error Handling

In case of an error (e.g., invalid API key or non-existent account ID), you will receive an error message detailing the issue.

Ensure your API key is valid and you are using the correct HTTP method for the request.

In case of an error (e.g., invalid API key or non-existent account ID), you will receive an error message detailing the issue.

Last updated