OAuth Connections

Manage oauth connections on your application

Get all oauth connections

GET https://wemx.app/api/v1/oauth-connections

Returns all oauth connections made clients on your application

{
    "status": true,
    "current_page": 1,
    "data": [
        {
            "id": 5,
            "user_id": 442,
            "driver": "discord",
            "email": "jamesweb@example.com",
            "external_profile": null,
            "display_on_profile": 1,
            "data": {
                "id": "335517155586080768",
                "username": "jamesweb_",
                "avatar": "bah23pqiel2332asderm2sakwei",
                "discriminator": "0",
                "public_flags": 55,
                "premium_type": 1,
                "flags": 55,
                "banner": null,
                "accent_color": 1644829,
                "global_name": "JamesWeb",
                "avatar_decoration_data": null,
                "banner_color": "#19191d",
                "mfa_enabled": false,
                "locale": "en-US",
                "email": "jamesweb@example.com",
                "verified": true
            },
            "created_at": "2024-01-26T13:08:02.000000Z",
            "updated_at": "2024-01-26T13:08:02.000000Z"
        }
    ],
    "first_page_url": "http://wemx.app/api/v1/oauth-connections?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://wemx.app/api/v1/oauth-connections?page=1",
    "links": [
        {
            "url": null,
            "label": "Previous",
            "active": false
        },
        {
            "url": "http://wemx.app/api/v1/oauth-connections?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "http://wemx.app/api/v1/oauth-connections",
    "per_page": 15,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}

Available Relationships (optional)

https://wemx.app/api/v1/oauth-connections?include=user

Available relationships:

user

Filters (optional)

https://wemx.app/api/v1/oauth-connections?filter[transaction_id]=test

Available Filters:

id, user_id, driver, email, data, external_profile, display_on_profile

Tip: To filter JSON columns such as gateway, data and options, you can specify the key using ?filter[data->id]=589927390123721

The above filter will return the user with discord id 589927390123721 you can also use it for other drivers.

Sorting (optional)

https://wemx.app/api/v1/oauth-connections?sort[created_at]=asc

Available Sorting Parameters:

id, user_id, driver, email

Sorting operators

asc, desc, random

Dates (optional)

https://wemx.app/api/v1/oauth-connections?date=30days

Last updated