Retrieve a sim swap event subscription for a phone number
GET/simswap/subscriptions/{subscriptionId}
retrieve event subscription information for a given subscription.
Path Parameters
Retrieve a sim swap event subscription for a phone number
curl https://api.example.com/camara/simswap/subscriptions/$SUBSCRIPTION_ID \
-H "Authorization: Bearer $CAMARA_BEARER_TOKEN"{
"protocol": "HTTP",
"sink": "https://endpoint.example.com/sink",
"types": [
"org.camaraproject.sim-swap-subscriptions.v0.swapped"
],
"config": {
"subscriptionDetail": {
"phoneNumber": "+123456789"
},
"subscriptionExpireTime": "2025-01-17T13:18:23.682Z"
},
"id": "1119920371",
"startsAt": "2024-06-07T16:10:15.302Z",
"expiresAt": "2024-06-07T16:10:15.302Z",
"status": "ACTIVATION_REQUESTED"
}{
"protocol": "HTTP",
"sink": "https://endpoint.example.com/sink",
"types": [
"org.camaraproject.sim-swap-subscriptions.v0.swapped"
],
"config": {
"subscriptionDetail": {},
"subscriptionExpireTime": "2025-01-17T13:18:23.682Z"
},
"id": "1119920371",
"startsAt": "2024-06-07T16:10:15.302Z",
"expiresAt": "2024-06-07T16:10:15.302Z",
"status": "ACTIVATION_REQUESTED"
}{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Client specified an invalid argument, request body or query param."
}{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Expected property is missing: subscriptionId"
}{
"status": 401,
"code": "UNAUTHENTICATED",
"message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}{
"status": 403,
"code": "PERMISSION_DENIED",
"message": "Client does not have sufficient permissions to perform this action."
}{
"status": 404,
"code": "NOT_FOUND",
"message": "The specified resource is not found."
}Returns Examples
{
"protocol": "HTTP",
"sink": "https://endpoint.example.com/sink",
"types": [
"org.camaraproject.sim-swap-subscriptions.v0.swapped"
],
"config": {
"subscriptionDetail": {
"phoneNumber": "+123456789"
},
"subscriptionExpireTime": "2025-01-17T13:18:23.682Z"
},
"id": "1119920371",
"startsAt": "2024-06-07T16:10:15.302Z",
"expiresAt": "2024-06-07T16:10:15.302Z",
"status": "ACTIVATION_REQUESTED"
}{
"protocol": "HTTP",
"sink": "https://endpoint.example.com/sink",
"types": [
"org.camaraproject.sim-swap-subscriptions.v0.swapped"
],
"config": {
"subscriptionDetail": {},
"subscriptionExpireTime": "2025-01-17T13:18:23.682Z"
},
"id": "1119920371",
"startsAt": "2024-06-07T16:10:15.302Z",
"expiresAt": "2024-06-07T16:10:15.302Z",
"status": "ACTIVATION_REQUESTED"
}{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Client specified an invalid argument, request body or query param."
}{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Expected property is missing: subscriptionId"
}{
"status": 401,
"code": "UNAUTHENTICATED",
"message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}{
"status": 403,
"code": "PERMISSION_DENIED",
"message": "Client does not have sufficient permissions to perform this action."
}{
"status": 404,
"code": "NOT_FOUND",
"message": "The specified resource is not found."
}