API Manager

Operations for managing and routing CAMARA-compliant API requests.


Parameters

Name In Type Required Description
body body NumberVerificationRequestBody true ‘none’

Request body - instance of NumberVerificationRequestBody

1
2
3
{
  "phoneNumber": "+346661113334"
}
Name Type Required Description
phoneNumber PhoneNumber false A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, prefixed with ‘+’.
hashedPhoneNumber string false Hashed phone number. SHA-256 (in hexadecimal representation) of the mobile phone number in E.164 format (starting with country code). Prefixed with ‘+’.

Request example

1
2
3
4
5
6
7
8

curl -X POST /number-verification/v1/verify \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'phoneNumber': '+346661113334'
}" 

Responses

Code Meaning Description Schema
200 OK OK NumberVerificationMatchResponse
400 Bad Request Problem with the client request ErrorInfo
401 Unauthorized Unauthorized ErrorInfo
403 Forbidden Client does not have sufficient permission.
In addition to regular scenario of PERMISSION_DENIED, other scenarios may exist:
  • Client authentication was not via mobile network. In order to check the authentication method, AMR parameter value in the 3-legged user’s access token can be used and make sure that the authentication was not either by SMS+OTP nor username/password ({"code": "NUMBER_VERIFICATION.USER_NOT_AUTHENTICATED_BY_MOBILE_NETWORK","message": "Client must authenticate via the mobile network to use this service"})
  • Phone number cannot be deducted from access token context.({"code": "INVALID_TOKEN_CONTEXT","message": "Phone number cannot be deducted from access token context"})|ErrorInfo|
    |500|Internal Server Error|Server error|ErrorInfo|
    |503|Service Unavailable|Service unavailable. Typically the server is down.|ErrorInfo|
    |504|Gateway Time-out|Request time exceeded. If it happens repeatedly, consider reducing the request complexity|ErrorInfo|

Parameters

Name In Type Required Description
body body CreateSimSwapDate true Create a SIM swap date request for a phone number.

Request body - instance of CreateSimSwapDate

1
2
3
{
  "phoneNumber": "+346661113334"
}
Name Type Required Description
phoneNumber PhoneNumber false A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, prefixed with ‘+’.

Request example

1
2
3
4
5
6
7
8

curl -X POST /sim-swap/v1/retrieve-date \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'phoneNumber': '+346661113334'
}" 

Responses

Code Meaning Description Schema
200 OK Contains information about SIM swap change SimSwapInfo
400 Bad Request Problem with the client request ErrorInfo
401 Unauthorized Unauthorized ErrorInfo
403 Forbidden Forbidden ErrorInfo
404 Not Found Not found ErrorInfo
422 Unprocessable Entity Unprocessable Content ErrorInfo
500 Internal Server Error Server error ErrorInfo
503 Service Unavailable Service unavailable. Typically the server is down. ErrorInfo
504 Gateway Time-out Request time exceeded. If it happens repeatedly, consider reducing the request complexity ErrorInfo

Parameters

Name In Type Required Description
body body CreateCheckSimSwap true Create a check SIM swap request for a phone number.

Request body - instance of CreateCheckSimSwap

1
2
3
4
{
  "phoneNumber": "+346661113334",
  "maxAge": 240
}
Name Type Required Description
phoneNumber PhoneNumber false A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, prefixed with ‘+’.
maxAge integer(int32) false Period in hours to be checked for SIM swap.

Request example

1
2
3
4
5
6
7
8
9

curl -X POST /sim-swap/v1/check \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
 --data-raw "{
  'phoneNumber': '+346661113334',
  'maxAge': 240
}" 

Responses

Code Meaning Description Schema
200 OK Returns whether a SIM swap has been performed during a past period CheckSimSwapInfo
400 Bad Request Problem with the client request ErrorInfo
401 Unauthorized Unauthorized ErrorInfo
403 Forbidden Forbidden ErrorInfo
404 Not Found Not found ErrorInfo
422 Unprocessable Entity Unprocessable Content ErrorInfo
500 Internal Server Error Server error ErrorInfo
503 Service Unavailable Service unavailable. Typically the server is down. ErrorInfo
504 Gateway Time-out Request time exceeded. If it happens repeatedly, consider reducing the request complexity ErrorInfo

Endpoints

API Manager

    Device Swap

      KYC Match