Retrieve a list of sim swap event subscription
GET/simswap/subscriptions
Retrieve a list of sim swap event subscription(s)
Returns
id: string
The unique identifier of the subscription in the scope of the subscription manager. When this information is contained within an event notification, this concept SHALL be referred as subscriptionId as per Commonalities Event Notification Model.
Camara Event types eligible for subscription:
- org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification when a sim swap is performed on the line. Note: for the Commonalities meta-release v0.4 we enforce to have only event type per subscription then for following meta-release use of array MUST be decided at API project level.
expiresAt: optional string
Date when the event subscription will expire. Only provided when subscriptionExpireTime is indicated by API client or Telco Operator has specific policy about that.
It must follow RFC 3339 and must have time zone.
formatdate-time
startsAt: optional string
Date when the event subscription will begin/began It must follow RFC 3339 and must have time zone.
formatdate-time
Retrieve a list of sim swap event subscription
curl https://api.example.com/camara/simswap/subscriptions \
-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": 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."
}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": 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."
}