API v2: Session Timestamping ๐Ÿ†•ยถ

Note

To timestamp sessions, first you haveย toย enable and configure the timestamping feature. Goย toย Settings > System > Timestamping. For more information refer to the Timestamping section of the Fudo Enterprise Documentation.


Data Structures: SessionTimestampModelยถ

SessionTimestampModelยถ

Attribute

Type

Required

Description

session_id

string

yes

ID of the session to timestamp. Immutable.

trusted_timestamp_details

string

Timestamp details for the session. Read-only.

Retrieve Available Attributes of the SessionTimestampModelยถ

Request

Method

GET

Path

/api/v2/objspec/session_timestamp

GET /api/v2/objspec/session_timestamp

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/objspec/session_timestamp'

Data Structures: TimestampModelยถ

TimestampModelยถ

Attribute

Type

Required

Description

enabled

boolean

Indicates whether timestamping is enabled.

provider

string{certum, kir, pwpw}

pkcs12

string

PKCS12 file. Protected. Requires pkcs12_passphrase attribute.

pkcs12_passphrase

string

Required by pkcs12

Passphrase to use to decrypt PKCS12 file. Protected.

certificate

string

Timestamp certificate. Read-only.

expire_after

string

Timestamp certificate expiration datetime. Format RFC3339. Read-only.

Retrieve Available Attributes of the TimestampModelยถ

Request

Method

GET

Path

/api/v2/objspec/timestamping

GET /api/v2/objspec/timestamping

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/objspec/timestamping'

Get Session Timestamping Detailsยถ

Request

Method

GET

Path

/api/v2/session/<session_id>/timestamp

GET /api/v2/session/<session_id>/timestamp

Example Request

curl -s -k -X GET \
     -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
     'https://10.31.92.108/api/v2/session/4665729213955833864/timestamp'

Response: Session without timestamp

{
    "result": "failure",
    "message": "The session does not have a trusted timestamp."
}

Response: Timestamped session


Timestamp Sessionยถ

Request

Method

POST

Path

/api/v2/session/<session_id>/timestamp

Headers

Content-Type: Application/json

Body

SessionTimestampModel

POST /api/v2/session/<session_id>/timestamp

Example Request

curl -s -k -X POST \
  -H 'Authorization: proxycrypto' \
  'https://10.31.92.108/api/v2/session/4665729213955833858/timestamp'

Response: Timestamping not configured

{
    "result": "failure",
    "message": "Sessions timestamping is disabled."
}

Response: Timestamping configured

{
    "result": "failure",
    "message": "Sessions timestamping is disabled."
}

Delete Session Timestampingยถ

Request

Method

DELETE

Path

/api/v2/session/<session_id>/timestamp

DELETE /api/v2/session/<session_id>/timestamp

Example Request

curl -s -k -X DELETE \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.31.87.227/api/v2/session/4665729213955833858/timestamp'

Response

{
    "result": "success"
}