camara / original /DeviceReachabilityStatus /documentation /API_documentation /device-reachability-status-User-Story.md
Device Reachability Status User Story
| Item | Description | Support Qualifier |
|---|---|---|
| Summary | As an enterprise application developer, I want to query the reachability status of a user's device, so that I can determine whether the device is reachable via SMS, data (mobile internet), or both, enabling better communication or service management decisions based on real-time device availability. | M |
| Roles, Actor(s) and scope | Roles: Customer:Developer Actors: Application service providers (ASP), hyperscalers, application developers. Scope: Order To Activate (OTA) - Get connectivity status of a device |
M |
| NF Requirements | - | O |
| Pre-conditions | - The customer:developer has been successfully onboarded to the API platform of the service provider - The customer application has requested and received an access token with the required scope for the API |
M |
| Begins when | The customer application server makes a POST request to retrieve the reachability status of a user's device | M |
| Ends when | The service provider returns the reachability status of the device with a timestamp when the status information was updated. In case of the device is reachable, additionally, the type of the connectivity (data, sms or both) is returned as well. | |
| Post-conditions | - | M |
| Exceptions | Several exceptions might occur during the API operations: - Unauthorized: Invalid credentials (e.g., expired access token). - Incorrect input data (e.g., malformed phone number). - Not found: The phone number is not associated with a CSP customer account |
M |
Linking a user story to API design
Once we have the user story, the next step is to clarify the data journey in the context of the target and source systems we are integrating:
- Think about triggers for workflows: how and when does data need to be moved between the application and the service?
- Think about dependencies of data objects: does the data in underlying objects need to be regularly kept in sync with another system?
- Think about any parameters the user might need to configure or change. This is particularly important when building self-serve integrations for non-technical end users.
- Think about privacy by design: does any data represent sensitive information, and how can this be safely shared/stored according to regulation (e.g., anonymisation, tokenisation, zero-trust principles)