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

Update notification params

An authenticated client can update its domain, Notify URI, or upload URI.

Use this call after authentication, to update your domain, uriNotify, or uriUpload callback APIs

PATCH https:opensourceAIs.com/api/v1/private/client/notify

When calling an AI, you get an immediate response with a "uid" confirming that your request is being processed. However, as the processing can take a rather long time, the way to get back information from the AI is via notifications. Through opensourceAIs.com, the AI will call you back on your domain and on your registered URIs (notify and upload).

Request Body

Name
Type
Description

domain

String

Your domain name (eg: test.com)

uriNotify

String

the URI where you want notifications to be sent (eg: api/v1/test/notify)

uriUpload

String

the URI where you want AI generated image uploads to be sent (eg: api/v1/test/upload)

{
    "data": {
        "token": "a641d656af7ccc38cd34baac87e5f978dc2",
        "domain": "http://test.com",
        "uriNotify": "api/v1/public/notify",
        "uriUpload": "api/v1/public/upload",
        "created_at": "2023-02-16T12:48:31.000Z",
        "lastUpdated_at": "2023-03-08T17:52:30.000Z",
        "validated_at": "2023-03-08T17:52:02.000Z"
    }
}
{
    "data": null,
    "status": 400,
    "message": "at least domain, or uriNotify or uriUpload required"
}
PreviousAuthenticate into OSAISNextCheck a request

Last updated 2 years ago