"The tech gate of Numinia with the external partners"
This API is designed to facilitate communication and integration with external services used by the Numinia ecosystem.
To get started with this project, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/your-username/numinia-integrations-api.git- Install dependencies using npm:
npm installBefore running the API, you need to set up some environment variables. Create a .env file in the project's root directory and define the following variables:
DISCORD_WEBHOOK_URL=YOUR_DISCORD_WEBHOOK_URL_HERE
Once you have configured the environment variables, you can start the server locally by running:
Functionality to integrate with Discord for sending push notifications.
- URL:
/api/v1/discord/sendWebHook - Method:
POST - Request Body:
{
"season": 1,
"userName": "Test",
"spaceName": "Steiner Dreams",
"spaceUrl": "https://test.com",
"walletId": "0x00000000000000000000dead"
}- Successful Response:
204 OK - Error Response:
4xxor5xxwith descriptive message.
Functionality to send messages to chatGPT
- URL:
/api/v1/openai/send-text-message - Method:
POST - Request Body:
{
"message": "test",
"temperature": "TEMP_LOW | TEMP_MEDIUM | TEMP_HIGH"
}- Successful Response:
200 OK - Error Response:
4xxor5xxwith descriptive message.
Functionality to send messages to a chatGPT preloaded numinia assistant
- URL:
/api/v1/openai/assistant/send-text-message - Method:
POST - Request Body:
{
"message": "test",
"temperature": "TEMP_LOW | TEMP_MEDIUM | TEMP_HIGH",
"assistant": "ANUZ | URSA | ANTUNJ | LESATH | KHAMBALIA | RIMA | ARLA | DEDUN | GUMALA | SENET | THOTH | PROCYON | NIMROD | SENET_DUNGEON_WORLD_MASTER"
}- Successful Response:
200 OK - Error Response:
4xxor5xxwith descriptive message.
We welcome contributions! If you'd like to improve this project, please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature/awesome-feature).
- Make your changes and commit them (git commit -am 'Add an awesome feature').
- Push the branch (git push origin feature/awesome-feature).
- Open a pull request.
Code released under the CCO License.
Copyright (c) 2024, NumenGames