JustPush.io
  • Introduction
  • New? Start Here
  • The Glossary
  • USER MANUAL
    • Getting Started
    • API Key
    • JustPush Email
  • OBJECTS
    • Messages
      • Title
      • Topic
      • Message
      • Priority
      • Sounds
      • Images
      • Acknowledgements
      • Buttons
      • Button Groups
      • Expiry TTL
    • Topics
      • Title
      • Avatar
  • DEV TOOLS
    • API reference
      • Messages
      • Topics
    • OpenAPI
    • Rapid API
    • Postman
    • SDKs
    • Changelog
Powered by GitBook
On this page
  1. DEV TOOLS
  2. API reference

Topics

PreviousMessagesNextOpenAPI
  • GETGet a topic
  • PUTUpdate a topic
  • POSTCreate a Topic

Get a topic

get

Get a topic based on the uuid.

Authorizations
Path parameters
topicUuidstringRequired
Responses
default
Topic Get Body
application/json
get
GET /topics/{topicUuid} HTTP/1.1
Host: api.justpush.io
Authorization: Bearer Token
Accept: */*
default

Topic Get Body

{
  "uuid": "text",
  "title": "text",
  "slug": "text",
  "avatar": "text",
  "has_custom_avatar": "text",
  "token": "text"
}

Update a topic

put

Update an existing topic

Authorizations
Path parameters
topicUuidstringRequired
Body
titlestringOptional
Responses
default
Error Response Body
application/json
put
PUT /topics/{topicUuid} HTTP/1.1
Host: api.justpush.io
Authorization: Bearer Token
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "title": "text",
  "avatar": {
    "external_url": "text",
    "body": "text"
  }
}
default

Error Response Body

{
  "message": "text",
  "code": 1
}

Create a Topic

post

Create a Topic and assigns it to the user immediately

Authorizations
Body
titlestringOptional
Responses
default
Error Response Body
application/json
post
POST /topics HTTP/1.1
Host: api.justpush.io
Authorization: Bearer Token
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "title": "text"
}
default

Error Response Body

{
  "message": "text",
  "code": 1
}