executor

Agent Server REST API

executor

POST http://dev.whitehat.co.kr/agent/v1/executor

API that can search the whole list of the executor or with the given search condition

Headers

Name
Type
Description

X-AGENT-API-TOKEN

string

required API for searching the Agent API

Request Body

Name
Type
Description

account

string

executor account to search

did

string

executor DID to search

type

string

executor type to search (admin/agent)

limit

string

Number of items to get at a time (default: 10)

page

string

Current page number (default:1)

{
  "code": 200,
  "message": "Success",
  "data": {
    "totalCount": 1,
    "list": [
      {
        "_id": "0",
        "account": "agent1",
        "did": "did:omn:agent1",
        "type": "agent",
        "isActive": "true"
      }
    ]
  }
}

Request Parameter example (JSON)

{
  "query": {
     "did": "did:omn:agent1",
     "type": "agent"
  },
  "limit": 10,
  "page": 1
}

Last updated