- Documentation
- API Reference
- Projects
- importer.vidinfra.com
- Auth
- User Registration
- User Login
- Verify-email
- Forgot Password
- Forgot Password Verify OTP
- Forgot Password Set
- Resend OTP
- Logout
- Set Password
- Check Account exists
- Update Password
- Google Oauth Redirect
- Google Oauth Callback
- api-access-check
- New Auth token using Refresh token
- Github Oauth Redirect
- Google Oauth Callback Copy
- Get User Sessions
- Delete User Sessions
- User
- Organization
- Organization's invitations
- Audits
- Members
- API Keys
- Folders
- Videos
- Video Metas
- Video Captions
- Video Chapter
- Uploads
- Tags
- Players
- Webhook Endpoints
- Advertisements
- Webhook Event Logs
- Analytics Direct Api
- geo-distribution
- Project Views
- avg video watch
- Total watch Time
- Project Avg Watch per Unique user
- Total Player Error
- project popularity-analysis
- Project Collection Insights
- Collection Views
- Collection avg Watch time
- Collection Avg Watch per unique user
- Collection Geo Distribution
- Get all Users
- User media views
- User Avg video watch
- user Player log
- user sessions
- Get all Video
- video Player error
- Video View
- video Geo Distribution
- video Avg watch
- copy
- Streams
- Stream Metas
- Usages
- Encoding profile
- Project Matrics
- Access Control
- Analytics
- Project Get geo-distribution
- project views
- Project avg video watch
- Project Total Watch
- Project Avg Watch per Unique user
- Project All Player Errors
- Project Popularity Analysis
- Project Collections insights
- Collection Geo Distribution
- Collection avg watch time
- Collection avg watch per unique User
- Collection Player error
- Video Geo Distribution
- Video views
- Video Avg Watch
- Video Player Log
- User
- User Avg Video Watch
- User Total Watch
- User player error log
- Plan
- Upload Tokens
- subscribe
- Transaction
- Invoice
- vimeo video importer
- test
- transcoding service
- transcoding service v2
- Welcome to vidinfraGET
- health checkGET
- Regions ListGET
- keyPOST
- Untitled EndpointGET
test permission
Developing
POST
/members/invitations/token/accept
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
object {0}
Example
// full access of project
// {
// "user_id": "772218c6-67b5-4acb-a380-3899a2aeb37a",
// "org_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "email": "skshahra@gmail.com",
// "permissions": [
// {
// "entity_id": "45f8a066-f355-4d7f-93ff-9886c7e362c0",
// "entity_type": "projects",
// "name": "full-access",
// "action": "write+read",
// "permission": []
// },
// {
// "entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "entity_type": "organizations",
// "name": "billing",
// "action": "",
// "permission": []
// },
// {
// "entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "entity_type": "organizations",
// "name": "api",
// "action": "write+read",
// "permission": []
// }
// ]
// }
// custom access of project
{
"user_id": "772218c6-67b5-4acb-a380-3899a2aeb37a",
"org_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"email": "skshahra@gmail.com",
"permissions": [
{
"entity_id": "45f8a066-f355-4d7f-93ff-9886c7e362c0",
"entity_type": "project",
"name": "custom",
"action": "",
"permission": [
{
"action": "custom",
"folders": [
{
"action": "write+read+delete",
"folder_id": "136b244a-9304-4ad3-b534-f25a4046a6d3"
}
],
"name": "folder"
},
{
"action": "write+read+delete",
"name": "livestreams"
},
{
"action": "write+read+delete",
"name": "analytics"
},
{
"action": "write+read+delete",
"name": "advertisements"
},
{
"action": "write+read+delete",
"name": "settings"
},
{
"action" : "write+read+delete",
"name" : "players"
}
]
},
{
"entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"entity_type": "organization",
"name": "billing",
"action": "write+read",
"permission": []
},
{
"entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"entity_type": "organization",
"name": "api",
"action": "write+read",
"permission": []
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8080/v1/members/invitations/token/accept' \
--header 'Content-Type: application/json' \
--data-raw '// full access of project
// {
// "user_id": "772218c6-67b5-4acb-a380-3899a2aeb37a",
// "org_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "email": "skshahra@gmail.com",
// "permissions": [
// {
// "entity_id": "45f8a066-f355-4d7f-93ff-9886c7e362c0",
// "entity_type": "projects",
// "name": "full-access",
// "action": "write+read",
// "permission": []
// },
// {
// "entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "entity_type": "organizations",
// "name": "billing",
// "action": "",
// "permission": []
// },
// {
// "entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
// "entity_type": "organizations",
// "name": "api",
// "action": "write+read",
// "permission": []
// }
// ]
// }
// custom access of project
{
"user_id": "772218c6-67b5-4acb-a380-3899a2aeb37a",
"org_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"email": "skshahra@gmail.com",
"permissions": [
{
"entity_id": "45f8a066-f355-4d7f-93ff-9886c7e362c0",
"entity_type": "project",
"name": "custom",
"action": "",
"permission": [
{
"action": "custom",
"folders": [
{
"action": "write+read+delete",
"folder_id": "136b244a-9304-4ad3-b534-f25a4046a6d3"
}
],
"name": "folder"
},
{
"action": "write+read+delete",
"name": "livestreams"
},
{
"action": "write+read+delete",
"name": "analytics"
},
{
"action": "write+read+delete",
"name": "advertisements"
},
{
"action": "write+read+delete",
"name": "settings"
},
{
"action" : "write+read+delete",
"name" : "players"
}
]
},
{
"entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"entity_type": "organization",
"name": "billing",
"action": "write+read",
"permission": []
},
{
"entity_id": "7f5a036c-7432-4af7-8624-9868e3aaba2d",
"entity_type": "organization",
"name": "api",
"action": "write+read",
"permission": []
}
]
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{}