Skip to content

Latest commit

 

History

History
80 lines (71 loc) · 1.15 KB

GatewayAPI.md

File metadata and controls

80 lines (71 loc) · 1.15 KB

Gateway APIs

SMS

Request

URL: https://gateway.tld/api/send-sms
Method: POST

{
    "requester": {
        "institution": "SURFnet",
        "identity": "d12cb994-5719-405a-9533-af1beef78ee3"
    },
    "message": {
        "originator": "SURFnet",
        "recipient": "31610101010",
        "body": "DCAF83"
    }
}

Responses

On Success 200 OK

{
    "status": "OK"
}

MessageBird delivery status is not available for lib/bundle consumers

On Invalid Request 400 BAD REQUEST

{
    "errors": [
        "Invalid phonenumber format"
    ]
}

On Failure 502 Bad Gateway

{
    "errors": [
        "Not enough balance (25)"
    ]
}

Messagebird error

Yubikey

Request

URL: https://gateway.tld/api/verify-yubikey
Method: POST

{
    "requester": {
        "institution":"institution",
        "identity":"UUID"
    },
    "otp": { 
        "value": "ccccccbtbhnhgvjjickhkndrllvfcerkrcdttbtigduc"
    }
}

Responses

On Success 200 OK

{
    "status": "OK"
}

On Invalid Request 400 BAD REQUEST

On Failure 502 Bad Gateway