NAV navbar
logo

Pibisi Documentation

version v1

/auth


/authenticate post

POST: /auth/authenticate


Header Parameters

X-AUTH-TOKEN
Valid JWT API token

PropertyValue
requiredtrue
typestring
exampleseyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

/authenticate post

CURL EXAMPLE

curl -X POST "/auth/authenticate" \
	-H "X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" \
	-d @request_body

REQUEST HEADERS

X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

/users


/me get

GET: /users/me


Header Parameters

X-AUTH-TOKEN
Valid JWT APP token

PropertyValue
requiredtrue
typestring
exampleseyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Possible Responses

200


/me get

CURL EXAMPLE

curl -X GET "/users/me" \
	-H "X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

REQUEST HEADERS

X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

RESPONSE BODY

{
  "email": "email@pibisi.com",
  "name": "User Pibisi"
}
Type
object


/account get

GET: /users/me/account

Get information about the account


Header Parameters

X-AUTH-TOKEN
Valid JWT APP token

PropertyValue
requiredtrue
typestring
exampleseyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Possible Responses

200


/account get

CURL EXAMPLE

curl -X GET "/users/me/account" \
	-H "X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

REQUEST HEADERS

X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

RESPONSE BODY

{
  "type": "Account type",
}
Type
object


/persons get

GET: /users/me/persons

List all persons registered for the current account


Header Parameters

X-AUTH-TOKEN
Valid JWT APP token

PropertyValue
requiredtrue
typestring
exampleseyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Possible Responses

200


/persons get

CURL EXAMPLE

curl -X GET "/users/me/persons" \
	-H "X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

REQUEST HEADERS

X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

RESPONSE BODY

{
  "subjects": [
    {
      "uuid": "0a31f1d5-f94f-459b-9021-f78b68f1633c",
      "info": [
        {
          "type": "name.full",
          "content": "Sandor Clegane",
          "sois": [
              {
                  "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
                  "reliability": 1
              }
          ],
        },
        {
          "type": "name.alias",
          "content": "The Hound",
          "sois": [
              {
                  "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
                  "reliability": 1
              }
          ],
        },
        {
          "type": "gender",
          "content": "M",
          "sois": [
              {
                  "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
                  "reliability": 1
              }
          ],
        }
      ]
    },
    {
      "uuid": "550e8400-e29b-41d4-a716-446655440000",
      "info": [
        {
          "type": "name.full",
          "content": "Tyrion Lannister",
          "sois": [
              {
                  "uri": "https://en.wikipedia.org/wiki/Tyrion_Lannister",
                  "reliability": 1
              }
          ],
        },
        {
          "type": "name.alias",
          "content": "The Halfman",
          "sois": [
              {
                  "uri": "https://en.wikipedia.org/wiki/Tyrion_Lannister",
                  "reliability": 1
              }
          ],
        },
        {
          "type": "gender",
          "content": "M",
          "sois": [
              {
                  "uri": "https://en.wikipedia.org/wiki/Tyrion_Lannister",
                  "reliability": 1
              }
          ],
        }
      ]
    }

  ]
}
Type
object

/persons


/persons post

POST: /persons

Add a new person to follow up


Header Parameters

X-AUTH-TOKEN
Valid JWT APP token

PropertyValue
requiredtrue
typestring
exampleseyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Possible Responses

200


/persons post

CURL EXAMPLE

curl -X POST "/persons" \
	-H "X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" \
	-d @request_body

REQUEST HEADERS

X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

REQUEST BODY

{
  "type": "identity.passport",
  "content": "A123456789"
}
Type
object

RESPONSE BODY

{
  "uuid": "0a31f1d5-f94f-459b-9021-f78b68f1633c",
  "info": [
    {
      "type": "name.full",
      "content": "Sandor Clegane",
      "sois": [
          {
              "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
              "reliability": 1
          }
      ],
    },
    {
      "type": "name.alias",
      "content": "The Hound",
      "sois": [
          {
              "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
              "reliability": 1
          }
      ],
    },
    {
      "type": "gender",
      "content": "M",
      "sois": [
          {
              "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
              "reliability": 1
          }
      ],
    }
  ]
}
Type
object


/{uuid} get

GET: /persons/{uuid}

List all information of a person


URI Parameters

uuid

PropertyValue
requiredtrue
typestring

Header Parameters

X-AUTH-TOKEN
Valid JWT APP token

PropertyValue
requiredtrue
typestring
exampleseyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Possible Responses

200


/{uuid} get

CURL EXAMPLE

curl -X GET "/persons/{uuid}" \
	-H "X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

REQUEST HEADERS

X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

RESPONSE BODY

{
  "uuid": "0a31f1d5-f94f-459b-9021-f78b68f1633c",
  "info": [
    {
      "type": "name.full",
      "content": "Sandor Clegane",
      "sois": [
          {
              "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
              "reliability": 1
          }
      ],
    },
    {
      "type": "name.alias",
      "content": "The Hound",
      "sois": [
          {
              "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
              "reliability": 1
          }
      ],
    },
    {
      "type": "gender",
      "content": "M",
      "sois": [
          {
              "uri": "https://en.wikipedia.org/wiki/Sandor_Clegane",
              "reliability": 1
          }
      ],
    }
  ]
}
Type
object


/events get

GET: /persons/{uuid}/events

List all events related to a person


URI Parameters

uuid

PropertyValue
requiredtrue
typestring

Header Parameters

X-AUTH-TOKEN
Valid JWT APP token

PropertyValue
requiredtrue
typestring
exampleseyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Possible Responses

200


/events get

CURL EXAMPLE

curl -X GET "/persons/{uuid}/events" \
	-H "X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

REQUEST HEADERS

X-AUTH-TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

RESPONSE BODY

[
  {
      "event": "data.subject_updated",
      "registered_at": "2018-08-28 05:36:11"
  },
  {
      "event": "data.subject_updated",
      "registered_at": "2018-09-01 09:56:23"
  }
]
Type
object