Microsoft.CodeTransparency (preview:2024-01-11)

2025/03/06 • 3 new, 7 updated methods

CreateEntryDeprecated (new)
Description Post an entry to be registered on the CodeTransparency instance (deprecated)
Reference Link ¶

⚼ Request

POST:  /entries
{
api-version: string ,
body: string ,
}

⚐ Response (200)

{
operationId: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
GetEntryDeprecated (new)
Description Get signed statement with or without receipt embedded in its unprotected header
Reference Link ¶

⚼ Request

GET:  /entries/{entryId}
{
api-version: string ,
entryId: string ,
embedReceipt: boolean ,
}

⚐ Response (200)

{
$schema: file ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
GetEntryReceiptDeprecated (new)
Description Get the receipt of an entry given a specific entry id.
Reference Link ¶

⚼ Request

GET:  /entries/{entryId}/receipt
{
api-version: string ,
entryId: string ,
}

⚐ Response (200)

{
$schema: file ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
GetDidConfig (updated)
Description Get the DID configuration file (deprecated)
Reference Link ¶

⚶ Changes

{
  "#id": "GetDidConfig",
  "Description": {
    "new": "Get the DID configuration file (deprecated)",
    "old": "Get the DID configuration file."
  }
}

⚼ Request

GET:  /.well-known/did.json
{
api-version: string ,
}

⚐ Response (200)

{
id: string ,
assertionMethod:
[
{
id: string ,
controller: string ,
type: enum ,
publicKeyJwk:
{
alg: string ,
crv: string ,
d: string ,
dp: string ,
dq: string ,
e: string ,
k: string ,
kid: string ,
kty: string ,
n: string ,
p: string ,
q: string ,
qi: string ,
use: string ,
x: string ,
x5c:
[
string ,
]
,
y: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
GetCodeTransparencyConfig (updated)
Description Get CodeTransparency configuration information.
Reference Link ¶

⚶ Changes

{
  "#id": "GetCodeTransparencyConfig",
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "policy",
          "Description": {
            "new": "Policy configuration",
            "old": "Configuration of CCF Authentication policies."
          }
        },
        {
          "#name": "authentication",
          "Description": {
            "new": "Authentication configuration",
            "old": "Configuration of CCF authentication."
          },
          "$properties": [
            {
              "#name": "jwt",
              "Description": {
                "new": "JWT requirements if authentication is enabled",
                "old": "Configuration of JWT claims"
              }
            }
          ]
        },
        {
          "#name": "service_identifier",
          "Description": {
            "new": "Issuer used in receipts",
            "old": "did:web identifier"
          }
        }
      ]
    },
    "@added_d8cf0e1161394c52aa7eb3a6564c537f": {
      "#status": "500",
      "$headers": [
        {
          "#name": "x-ms-error-code",
          "Description": "String error code indicating what went wrong.",
          "Type": "string"
        }
      ],
      "$schema": {
        "Description": "A response containing error details.",
        "Type": "object",
        "$properties": [
          {
            "#name": "error",
            "Description": "The error object.",
            "Required": true,
            "Type": "object",
            "$properties": [
              {
                "#name": "code",
                "Description": "One of a server-defined set of error codes.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "message",
                "Description": "A human-readable representation of the error.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "target",
                "Description": "The target of the error.",
                "Required": false,
                "Type": "string"
              },
              {
                "#name": "details",
                "Description": "An array of details about specific errors that led to this reported error.",
                "Required": false,
                "Type": "array",
                "$items": {
                  "Type": "string"
                }
              },
              {
                "#name": "innererror",
                "Description": "An object containing more specific information than the current object about the error.",
                "Required": false,
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "One of a server-defined set of error codes.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "innererror",
                    "Required": false,
                    "Type": "string"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "@added_db4c385941bd4880b8a0c7b633e32a32": {
      "#status": "503",
      "$headers": [
        {
          "#name": "retry-after",
          "Description": "Retry the same request after a suggested number of seconds",
          "Type": "string"
        },
        {
          "#name": "x-ms-error-code",
          "Description": "String error code indicating what went wrong.",
          "Type": "string"
        }
      ],
      "$schema": {
        "Description": "A response containing error details.",
        "Type": "object",
        "$properties": [
          {
            "#name": "error",
            "Description": "The error object.",
            "Required": true,
            "Type": "object",
            "$properties": [
              {
                "#name": "code",
                "Description": "One of a server-defined set of error codes.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "message",
                "Description": "A human-readable representation of the error.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "target",
                "Description": "The target of the error.",
                "Required": false,
                "Type": "string"
              },
              {
                "#name": "details",
                "Description": "An array of details about specific errors that led to this reported error.",
                "Required": false,
                "Type": "array",
                "$items": {
                  "Type": "string"
                }
              },
              {
                "#name": "innererror",
                "Description": "An object containing more specific information than the current object about the error.",
                "Required": false,
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "One of a server-defined set of error codes.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "innererror",
                    "Required": false,
                    "Type": "string"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "@removed_c6d8fbc66cd8407a83eaa140d91e4d6f": {
      "#status": "default",
      "$headers": [
        {
          "#name": "x-ms-error-code",
          "Description": "String error code indicating what went wrong.",
          "Type": "string"
        }
      ],
      "$schema": {
        "Description": "A response containing error details.",
        "Type": "object",
        "$properties": [
          {
            "#name": "error",
            "Description": "The error object.",
            "Required": true,
            "Type": "object",
            "$properties": [
              {
                "#name": "code",
                "Description": "One of a server-defined set of error codes.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "message",
                "Description": "A human-readable representation of the error.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "target",
                "Description": "The target of the error.",
                "Required": false,
                "Type": "string"
              },
              {
                "#name": "details",
                "Description": "An array of details about specific errors that led to this reported error.",
                "Required": false,
                "Type": "array",
                "$items": {
                  "Type": "string"
                }
              },
              {
                "#name": "innererror",
                "Description": "An object containing more specific information than the current object about the error.",
                "Required": false,
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "One of a server-defined set of error codes.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "innererror",
                    "Required": false,
                    "Type": "string"
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /configuration
{
api-version: string ,
}

⚐ Response (200)

{
policy:
{
accepted_algorithms:
[
string ,
]
,
accepted_did_issuers:
[
string ,
]
,
}
,
authentication:
{
allow_unauthenticated: boolean ,
jwt:
{
required_claims: object ,
}
,
}
,
service_identifier: string ,
}

⚐ Response (500)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}

⚐ Response (503)

{
$headers:
{
retry-after: string ,
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ListEntryIds (updated)
Description Historical query to get a list of entries of a given range
Reference Link ¶

⚶ Changes

{
  "#id": "ListEntryIds",
  "$responses": {
    "@added_f6837e6e98884555a88a033e76f5e406": {
      "#status": "500",
      "$headers": [
        {
          "#name": "x-ms-error-code",
          "Description": "String error code indicating what went wrong.",
          "Type": "string"
        }
      ],
      "$schema": {
        "Description": "A response containing error details.",
        "Type": "object",
        "$properties": [
          {
            "#name": "error",
            "Description": "The error object.",
            "Required": true,
            "Type": "object",
            "$properties": [
              {
                "#name": "code",
                "Description": "One of a server-defined set of error codes.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "message",
                "Description": "A human-readable representation of the error.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "target",
                "Description": "The target of the error.",
                "Required": false,
                "Type": "string"
              },
              {
                "#name": "details",
                "Description": "An array of details about specific errors that led to this reported error.",
                "Required": false,
                "Type": "array",
                "$items": {
                  "Type": "string"
                }
              },
              {
                "#name": "innererror",
                "Description": "An object containing more specific information than the current object about the error.",
                "Required": false,
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "One of a server-defined set of error codes.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "innererror",
                    "Required": false,
                    "Type": "string"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "503": {
      "Description": {
        "new": "A response containing error details.",
        "old": "Service temporarily unavailable"
      }
    },
    "@removed_86eeeb183fe842968575c55077add7b4": {
      "#status": "default",
      "$headers": [
        {
          "#name": "x-ms-error-code",
          "Description": "String error code indicating what went wrong.",
          "Type": "string"
        }
      ],
      "$schema": {
        "Description": "A response containing error details.",
        "Type": "object",
        "$properties": [
          {
            "#name": "error",
            "Description": "The error object.",
            "Required": true,
            "Type": "object",
            "$properties": [
              {
                "#name": "code",
                "Description": "One of a server-defined set of error codes.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "message",
                "Description": "A human-readable representation of the error.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "target",
                "Description": "The target of the error.",
                "Required": false,
                "Type": "string"
              },
              {
                "#name": "details",
                "Description": "An array of details about specific errors that led to this reported error.",
                "Required": false,
                "Type": "array",
                "$items": {
                  "Type": "string"
                }
              },
              {
                "#name": "innererror",
                "Description": "An object containing more specific information than the current object about the error.",
                "Required": false,
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "One of a server-defined set of error codes.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "innererror",
                    "Required": false,
                    "Type": "string"
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /entries/txIds
{
api-version: string ,
from: integer ,
to: integer ,
}

⚐ Response (200)

{
transactionIds:
[
string ,
]
,
nextLink: string ,
}

⚐ Response (500)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}

⚐ Response (503)

{
$headers:
{
retry-after: string ,
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
ListEntryStatuses (updated)
Description Get the status of all entries operations (deprecated)
Reference Link ¶

⚶ Changes

{
  "#id": "ListEntryStatuses",
  "Description": {
    "new": "Get the status of all entries operations (deprecated)",
    "old": "Get the status of all entries operations"
  }
}

⚼ Request

GET:  /operations
{
api-version: string ,
}

⚐ Response (200)

{
operations:
[
{
entryId: string ,
error: string ,
operationId: string ,
status: enum ,
}
,
]
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
GetEntryStatus (updated)
Description Get the status the entry operation (deprecated)
Reference Link ¶

⚶ Changes

{
  "#id": "GetEntryStatus",
  "Description": {
    "new": "Get the status the entry operation (deprecated)",
    "old": "Get the status the entry operation"
  }
}

⚼ Request

GET:  /operations/{operationId}
{
api-version: string ,
operationId: string ,
}

⚐ Response (200)

{
entryId: string ,
error: string ,
operationId: string ,
status: enum ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
GetParameters (updated)
Description Get service parameters (deprecated)
Reference Link ¶

⚶ Changes

{
  "#id": "GetParameters",
  "Description": {
    "new": "Get service parameters (deprecated)",
    "old": "Get service parameters"
  }
}

⚼ Request

GET:  /parameters
{
api-version: string ,
}

⚐ Response (200)

{
serviceCertificate: string ,
serviceId: string ,
signatureAlgorithm: string ,
treeAlgorithm: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
GetCodeTransparencyVersion (updated)
Description Get CodeTransparency version information.
Reference Link ¶

⚶ Changes

{
  "#id": "GetCodeTransparencyVersion",
  "$responses": {
    "@added_b2073c4e6e4447cfb2eb589dac155a21": {
      "#status": "500",
      "$headers": [
        {
          "#name": "x-ms-error-code",
          "Description": "String error code indicating what went wrong.",
          "Type": "string"
        }
      ],
      "$schema": {
        "Description": "A response containing error details.",
        "Type": "object",
        "$properties": [
          {
            "#name": "error",
            "Description": "The error object.",
            "Required": true,
            "Type": "object",
            "$properties": [
              {
                "#name": "code",
                "Description": "One of a server-defined set of error codes.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "message",
                "Description": "A human-readable representation of the error.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "target",
                "Description": "The target of the error.",
                "Required": false,
                "Type": "string"
              },
              {
                "#name": "details",
                "Description": "An array of details about specific errors that led to this reported error.",
                "Required": false,
                "Type": "array",
                "$items": {
                  "Type": "string"
                }
              },
              {
                "#name": "innererror",
                "Description": "An object containing more specific information than the current object about the error.",
                "Required": false,
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "One of a server-defined set of error codes.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "innererror",
                    "Required": false,
                    "Type": "string"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "@added_3a0634bc4c3f46a6ab5eda26c2fc9685": {
      "#status": "503",
      "$headers": [
        {
          "#name": "retry-after",
          "Description": "Retry the same request after a suggested number of seconds",
          "Type": "string"
        },
        {
          "#name": "x-ms-error-code",
          "Description": "String error code indicating what went wrong.",
          "Type": "string"
        }
      ],
      "$schema": {
        "Description": "A response containing error details.",
        "Type": "object",
        "$properties": [
          {
            "#name": "error",
            "Description": "The error object.",
            "Required": true,
            "Type": "object",
            "$properties": [
              {
                "#name": "code",
                "Description": "One of a server-defined set of error codes.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "message",
                "Description": "A human-readable representation of the error.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "target",
                "Description": "The target of the error.",
                "Required": false,
                "Type": "string"
              },
              {
                "#name": "details",
                "Description": "An array of details about specific errors that led to this reported error.",
                "Required": false,
                "Type": "array",
                "$items": {
                  "Type": "string"
                }
              },
              {
                "#name": "innererror",
                "Description": "An object containing more specific information than the current object about the error.",
                "Required": false,
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "One of a server-defined set of error codes.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "innererror",
                    "Required": false,
                    "Type": "string"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "@removed_da14838f52fe4a028cdecac3acc1fa5b": {
      "#status": "default",
      "$headers": [
        {
          "#name": "x-ms-error-code",
          "Description": "String error code indicating what went wrong.",
          "Type": "string"
        }
      ],
      "$schema": {
        "Description": "A response containing error details.",
        "Type": "object",
        "$properties": [
          {
            "#name": "error",
            "Description": "The error object.",
            "Required": true,
            "Type": "object",
            "$properties": [
              {
                "#name": "code",
                "Description": "One of a server-defined set of error codes.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "message",
                "Description": "A human-readable representation of the error.",
                "Required": true,
                "Type": "string"
              },
              {
                "#name": "target",
                "Description": "The target of the error.",
                "Required": false,
                "Type": "string"
              },
              {
                "#name": "details",
                "Description": "An array of details about specific errors that led to this reported error.",
                "Required": false,
                "Type": "array",
                "$items": {
                  "Type": "string"
                }
              },
              {
                "#name": "innererror",
                "Description": "An object containing more specific information than the current object about the error.",
                "Required": false,
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "One of a server-defined set of error codes.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "innererror",
                    "Required": false,
                    "Type": "string"
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /version
{
api-version: string ,
}

⚐ Response (200)

{
scitt_version: string ,
}

⚐ Response (500)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}

⚐ Response (503)

{
$headers:
{
retry-after: string ,
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}