SNSNotifier (corp-dev)

POST
Create Topic
POST
Add Subscriber
POST
Send Test Message
POST
List Topics
POST
List Subscribers
POST
Update Subscriber
POST
Remove Subscriber
POST
Remove Topic
OpenCollection

SNSNotifier (corp-dev)

Create Topic

POST
https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage

Headers

NameValue
Content-Typeapplication/json
x-api-keyBG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====

Body

{
  "action": "create_topic",
  "program": "CORP"
}

Code Snippet

curl -X POST "https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage" \
  -H "Content-Type: application/json" \
  -H "x-api-key: BG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====" \
  -d '{
  "action": "create_topic",
  "program": "CORP"
}'

Add Subscriber

POST
https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage

Headers

NameValue
x-api-keyBG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====
Content-Typeapplication/json

Body

{
  "action": "add_subscriber",
  "program": "DOJ ALL",
  "subscriber": {
    "name": "Sharyn Thornton",
    "email": "sharyn.j.thornton@leidos.com",
    "phone": "+16012602137"
  }
}

Code Snippet

curl -X POST "https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage" \
  -H "x-api-key: BG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "add_subscriber",
  "program": "DOJ ALL",
  "subscriber": {
    "name": "Sharyn Thornton",
    "email": "sharyn.j.thornton@leidos.com",
    "phone": "+16012602137"
  }
}'

Send Test Message

POST
https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/notify

Headers

NameValue
Content-Typeapplication/json
x-api-keyBG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====

Body

{
  "program": "DANTEST",
  "message": "This is a test message from SNS. \n Hopefiully this is on a new line.\nAnd this one too. Let me know if you do not get it.",
  "subject": "Admin Alert - Panic"
}

Code Snippet

curl -X POST "https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/notify" \
  -H "Content-Type: application/json" \
  -H "x-api-key: BG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====" \
  -d '{
  "program": "DANTEST",
  "message": "This is a test message from SNS. \n Hopefiully this is on a new line.\nAnd this one too. Let me know if you do not get it.",
  "subject": "Admin Alert - Panic"
}'

List Topics

POST
https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage

Headers

NameValue
Content-Typeapplication/json
x-api-keyBG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====

Body

{
  "action": "list_topics"
}

Code Snippet

curl -X POST "https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage" \
  -H "Content-Type: application/json" \
  -H "x-api-key: BG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====" \
  -d '{
  "action": "list_topics"
}'

List Subscribers

POST
https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage

Headers

NameValue
Content-Typeapplication/json
x-api-keyBG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====

Body

{
  "action": "list_subscribers",
  "program": "DOJ ALL"
}

Code Snippet

curl -X POST "https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage" \
  -H "Content-Type: application/json" \
  -H "x-api-key: BG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====" \
  -d '{
  "action": "list_subscribers",
  "program": "DOJ ALL"
}'

Update Subscriber

POST
https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage

Headers

NameValue
Content-Typeapplication/json
x-api-keyBG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====

Body

{
  "action": "update_subscriber",
  "program": "DANTEST",
  "subscriber": {
    "name": "Dan Wells",
    "email": "tracey.d.wells@leidos.com",
    "phone": "+16015943298"
  }
}

Code Snippet

curl -X POST "https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage" \
  -H "Content-Type: application/json" \
  -H "x-api-key: BG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====" \
  -d '{
  "action": "update_subscriber",
  "program": "DANTEST",
  "subscriber": {
    "name": "Dan Wells",
    "email": "tracey.d.wells@leidos.com",
    "phone": "+16015943298"
  }
}'

Remove Subscriber

POST
https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage

Headers

NameValue
Content-Typeapplication/json
x-api-keyBG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====

Body

{
  "action": "remove_subscriber",
  "program": "DOJ ALL",
  "subscriber": {
    "name": "Anna Okawara"
  }
}

Code Snippet

curl -X POST "https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage" \
  -H "Content-Type: application/json" \
  -H "x-api-key: BG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====" \
  -d '{
  "action": "remove_subscriber",
  "program": "DOJ ALL",
  "subscriber": {
    "name": "Anna Okawara"
  }
}'

Remove Topic

POST
https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage

Headers

NameValue
Content-Typeapplication/json
x-api-keyBG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====

Body

{
  "action": "remove_topic",
  "program": "dantest"
}

Code Snippet

curl -X POST "https://1wwqflgitk.execute-api.us-east-1.amazonaws.com/prod/manage" \
  -H "Content-Type: application/json" \
  -H "x-api-key: BG6XFZDEFHUEJDPEVIUFWREOC3KJFSWFQKN3UDN746AOEYL7JJOQ====" \
  -d '{
  "action": "remove_topic",
  "program": "dantest"
}'