• Skip to Search
  • Skip to Content
  • Skip to Side Navigation
Getting StartedSDK ReferenceGlossary
  • Home
  • Getting Started
  • SDK Reference
  • Portal
  • How-To
  • Troubleshooting
  • FAQs
  • Reference
  • Glossary
How-To Guides
  • API Usage
  • Artificially lower bandwidth or bitrate
  • Set up publishing or subscribing for only audio or only video
  • Set up High Availability
  • Optimal RTMP encoder settings
  • How do I find my stream key?
  • Preventing stream sharing
  • Debug tokens in the Portal
  • Display multiple copies of the same stream
  • Find the video dimension of the stream
  • Measure timing
  • Create test input
  • Verify encoder ability to contribute via UDP
  • Manage issues with installing Phenix SDKs
  • RTSP ingest from IP cameras
  • Work with timestamps in reports
  • How do I deal with corporate firewalls?
  • How do I record streams for VOD playback?
  • How do I set up ad insertion?
  • How do closed captions work in the Phenix system?
  • How do I set up and use SRT Ingest?
  • How do I set up and use RTMP Ingest?
  • How do I set up and use replay?

API Usage

Phenix APIs are used with standard HTTP Authorization headers.

Use HTTP Basic Authentication with your applicationId and secret. This Authorization: Basic <string> should be your "applicationId:secret", not an authentication token from the edgeAuth library.

For example, in the header:

HTTP
1PUT /pcast/channel HTTP/1.1
2Host: pcast.phenixrts.com
3Accept: application/json
4Authorization: Basic YXBwbGljYXRpb25JZDpzZWNyZXQ=
5Content-Type: application/json

The string following Authorization: Basic is simply base64-encoded "applicationId:secret".

base64 encoding is a reversible encoding. Always use HTTPS along with Basic Authentication.

To create an authorization string using your own applicationId and secret

  1. Concatenate your applicationId with a colon and your secret

  2. Base64 encode the resulting string

For example, if your applicationId is example.com and your secret is Not.a.real.secret007gaH.E-f)z4+9, the concatenated string would be

example.com:Not.a.real.secret007gaH.E-f)z4+9

And the base64-encoded string would be:

ZXhhbXBsZS5jb206Tm90LmEucmVhbC5zZWNyZXQwMDdnYUguRS1mKXo0Kzk=

When using Phenix APIs, your headers would include:

Authorization: Basic ZXhhbXBsZS5jb206Tm90LmEucmVhbC5zZWNyZXQwMDdnYUguRS1mKXo0Kzk=

Page Content
    Copyright 2023 © Phenix RTS
    Privacy Policy | Terms of Service
    v2023-01-31T21:25:10