Retrieve a share link
share_links.retrieve(strid) -> ShareLinkRetrieveResponse
GET/compute/v1/share-links/{id}
Retrieve metadata for a share link owned by the authenticated organization. Archived and expired links remain retrievable.
ReturnsExpand Collapse
class ShareLinkRetrieveResponse: …
class ShareLinkRetrieveResponse: …
id: str
Share link ID. This value is the bearer credential used to access the linked resources — treat it as a secret.
access_parameters: AccessParametersAccess-control parameters for the share link. Discriminated by access_mode: public requires no other fields; email requires a non-empty allowed_emails list.
access_parameters: AccessParameters
Access-control parameters for the share link. Discriminated by access_mode: public requires no other fields; email requires a non-empty allowed_emails list.
Retrieve a share link
import os
from boltz_api import Boltz
client = Boltz(
api_key=os.environ.get("BOLTZ_API_KEY"), # This is the default and can be omitted
)
share_link = client.share_links.retrieve(
"shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo",
)
print(share_link.id){
"id": "shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo",
"access_parameters": {
"access_mode": "public"
},
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"pipeline_ids": [
"string"
],
"prediction_ids": [
"string"
],
"workspace_id": "workspace_id",
"url": "https://lab.boltz.bio/share/shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo"
}Returns Examples
{
"id": "shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo",
"access_parameters": {
"access_mode": "public"
},
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"pipeline_ids": [
"string"
],
"prediction_ids": [
"string"
],
"workspace_id": "workspace_id",
"url": "https://lab.boltz.bio/share/shr_qoEFr2BlPTBLuM5BinaC8x7iVPP_AwppEOmlxQjJ-eo"
}