Get the token's organisation
The organisation this token writes to, and the token id. Call it first: a script checks the organisation id before any write. Changes nothing.
GET
/
v1
/
me
curl
curl -sS "https://api.shftd2.com/v1/me" \
-H "Authorization: Bearer $DS_MANAGEMENT_TOKEN"{
"account": {
"id": "acc_example1",
"name": "Example Media"
},
"token": {
"id": "mgt_exampletok01",
"prefix": "ds_mgmt_9f8e"
}
}
Authorizations
A management token: ds_mgmt_ followed by 40 lowercase hexadecimal characters, created by an owner in Settings → Management tokens. Opaque: send it as is, in the Authorization header only.
⌘I
curl
curl -sS "https://api.shftd2.com/v1/me" \
-H "Authorization: Bearer $DS_MANAGEMENT_TOKEN"{
"account": {
"id": "acc_example1",
"name": "Example Media"
},
"token": {
"id": "mgt_exampletok01",
"prefix": "ds_mgmt_9f8e"
}
}

