OpenSourceAIs
OpenSourceAIs
OpenSourceAIs
  • Open Source AIs
  • AI configuration
    • Preparing your environment
    • Installing a Daemon
    • AI config file
  • Client Tokens
    • Configuration
  • APIs
    • System status
    • Client Apps
      • Authenticate into OSAIS
      • Update notification params
      • Check a request
    • AIs
      • Integration Test
        • ai_ping
      • Txt2Img & Img2Img
        • ai_cnet
        • ai_diffusion
        • ai_vqgan
      • Img2Vid
        • ai_vtoonify
        • ai_sadtalker
      • Image Utilities
        • ai_rembg
        • ai_gfpgan
      • TTS & STT
        • ai_coquitts
  • Sample App
    • NodeJS sample
Powered by GitBook
On this page
  1. APIs
  2. Client Apps

Authenticate into OSAIS

A client can authenticate into the OpenSouceAIs service by passing its token and secret, to retrieve an authentication token.

Authenticates a Client into OSAIS backend

POST https://opensourceAIs.com/api/v1/public/client/login

Request Body

Name
Type
Description

token*

String

Your token, as received at registration time

secret*

String

Your secret, as received at registration time

{
 "data": {
        "token": "a641d628f31b456af7ccc388d140bb0e1fc2",
        "authToken": "eyJhbGciOiJIUzI1CI6IkpXVCJ9.eyJ1c2VybmFtZSI6Imh0dHA6Ly8xOTIuMTY4LjEuMTA4OjMwMjIiLCJ0b2tlbiI6ImE2NDFkNjQxM2E5OWY4ZmU1MGEyOGYzMWI0NTZhZjdjY2MzOGNkMzRiYWFjODdlNWY5NzhkMTQwYmIwZTFmYzIiLCJpYXQiOjE2NzgyOTY4MzEsImV4cCIX0.dIlfgqV8z9GcEBhgr1ksPGiNgC4yRXVkxZNICdnOLbU",
        "duration": "72h"
    }
}
{
    "data": null,
    "status": 404,
    "message": "Could not find client"
}
{
    "data": null,
    "status": 401,
    "message": "Invalid secret"
}
{
    data:null,
    status: 400,
    statusText: "Token required"    
}
PreviousClient AppsNextUpdate notification params

Last updated 2 years ago