Supametas.AI
Official website
English
English
  • Welcome to Supametas.AI
  • Cloud Service
    • Supametas.AI Cloud Service
      • Detailed Pricing Comparison
    • Guide
      • Create Dataset
      • Import Metadata
        • Fetching webpage data
        • Importing local text processing
        • Importing local image processing
        • Importing local audio processing
        • Importing local video processing
      • Cleaning data query
      • Export Cleaned Data
      • Dataset Configuration
  • Developer
    • Integration Process
    • Create API Key
    • Standard Request and Response
    • API
      • Import Text File
      • Import Web Page Task
      • Import Image Files
      • Import Audio Files
      • Import Video Files
      • View Import Task Details
      • Delete File Processing Task
    • Webhook
    • Error Code
    • Demo
  • Other
    • Community
    • Technical Support
Powered by GitBook
On this page
  • 1. Build HTTP Request Header Information
  • 2. Request Example
  • 3. Standard Response
  1. Developer

Standard Request and Response

General steps for making a request:

  1. Build Request Header Information

    1. Access-Key:Fill in directly.

    2. Content-Type:Fixed to application/json

  2. Build the request parameters according to the API documentation.

  3. Call the relevant interfaces as needed.

1. Build HTTP Request Header Information

First Type: Query type, taking the example of checking import task details

POST /openapi/open/v1/query-task HTTP/1.1
Host: https://api.supametas.ai/
scheme: https
Content-Type: application/json
cache-control: no-cache
Access-Key: {{YOUR_API_KEY}}

Second Type: File processing type, taking the example of importing a text file

POST /openapi/open/v1/file-task HTTP/1.1
Host: https://api.supametas.ai/
scheme: https
Content-Type: multipart/form-data
cache-control: no-cache
Access-Key: {{YOUR_API_KEY}}

2. Request Example

Request Parameter Encryption Step Example:

  1. Obtain Access-Key :Obtain it from the Supametas.ai platform dataset.

  2. Organize Request Data

{ "url": "http://yourdomain.com/api/put"}
  1. Build Request Header and Call the Interface

curl --location 'http://{{BaseUrl}}/set-webhook' \
--header 'Access-Key: 131n3cebse' \
--header 'Content-Type: application/json' \
--data '{
    "url": "https://yourdomain.com/api/put"
}'

3. Standard Response

The external structure includes the response status code, message description, and response data.

{
  "code": "",
  "message": "",
  "data": {}
}

Normal Response Message:

The JSON response body contains the data:

Parameter
Type
Description

code

STRING

Normal response code: "0"

message

STRING

Description of the normal response: null

data

OBJECT

Business data in the response

PreviousCreate API KeyNextAPI

Last updated 4 months ago

Taking the interface as an example:

webhook