Text Upload

This endpoint allows the caller to upload a new text asset for scoring.

Specification

Endpoint: /bg/text/{bid:uuid}/

Method: POST

URL Parameters:

   {bid}: uuid

Request Type: multipart upload

Response Type: {

media {

      id uuid

      account_id uuid

      brand_id uuid

      uploaded_by uuid

      md5 uuid

      mimetype string

      mimetype_md5 uuid

      created_at ISO8601

      updated_at ISO8601

      tombstoned_at ISO8601

      scored_at ISO8601

      description string

}

event {

        id uuid

        account_id uuid

        brand_id uuid

        approved integer

        observation integer

        queue uuid

        confidence float

        onbrand float

        grammar float

        profanity float

        racism float

        text_tone_and_voice float

}

  }

Sample Request: curl -X POST -F "file=@/path/to/your/file" https://api.novacloud.ai/bg/text/00000000-0000-0000-0000-000000000000/

Sample Response: {

"media": {

      "id": "11111111-1111-1111-1111-111111111111",

      "account_id": "00000000-0000-0000-0000-000000000000",

      "brand_id": "00000000-0000-0000-0000-000000000000",

      "uploaded_by": "00000000-0000-0000-0000-000000000000",

      "md5": "00000000-0000-0000-0000-000000000000",

      "mimetype": "image/png",

      "mimetype_md5": "00000000-0000-0000-0000-000000000000",

      "created_at": "2023-10-16T00:00:00Z",

      "updated_at": "2023-10-16T00:00:00Z",

      "tombstoned_at": "2023-10-16T00:00:00Z",

      "scored_at": "2023-10-16T00:00:00Z",

      "description": "description"

},

"event": {

      "id": "00000000-0000-0000-0000-000000000000",

      "account_id": "00000000-0000-0000-0000-000000000000",

      "brand_id": "00000000-0000-0000-0000-000000000000",

      "approved": 0,

      "observation": 0,

      "queue": "00000000-0000-0000-0000-000000000000",

      "confidence": 0.0,

      "onbrand": 0.0,

      "grammar": 0.0,

      "profanity": 0.0,

      "racism": 0.0,

      "text_tone_and_voice": 0.0

}

}