Download OpenAPI specification:Download
Gotsurge Partnership Internal API only allow for internal usage and need bearer auth token to access any of resources header.
Please leave immediately if you don't have access! For public access, please use this endpoint instead https://development-api-docs.gotsurge.co/partnership.html
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with W3C spec. And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
GotSurge offers three forms of authentication:
Only SysAdmin is authorized.
name required | string partner name |
webhook_url required | string partner webhook_url |
{- "name": "string",
- "webhook_url": "string"
}
{- "id": "string",
- "client_key": "string",
- "secret_key": "string",
- "webhook_url": "string",
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
{- "partner_authorizations": [
- {
- "id": "string",
- "client_key": "string",
- "secret_key": "string",
- "webhook_url": "string",
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}
Only SysAdmin is authorized.
partnerAuthorizationID required | string ID of the partner to be updated |
name required | string partner name |
webhook_url required | string partner webhook_url |
{- "name": "string",
- "webhook_url": "string"
}
{- "id": "string",
- "client_key": "string",
- "secret_key": "string",
- "webhook_url": "string",
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
Return the detail of a partner
partnerAuthorizationID required | string ID of the partner to be read |
{- "id": "string",
- "client_key": "string",
- "secret_key": "string",
- "webhook_url": "string",
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_by": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
You can use the your client_key to get basic detail of partner information.
For detail client_key, please ask hello@gotsurge.co
client_key required | string Client key of the partner to be read |
{- "client_key": "string",
- "name": "string",
- "webhook_url": "string"
}
Only OrgAdmin / User is authorized.
refresh_token required | string |
required | object |
{- "refresh_token": "string",
- "client_auth": {
- "key": "string",
- "name": "string"
}
}
{- "auth_code": "string",
- "server_time": "2019-08-24T14:15:22Z"
}
Only SysAdmin is authorized.
{- "id": "string",
- "auth_code": "string",
- "client_auth": {
- "key": "string",
- "name": "string"
}, - "token": "string",
- "name": "string",
- "email": "string",
- "roles": "string",
- "org_id": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
Generate session_id
after sign in with email
and password
X-Platform-ID required | string Platform Organization ID |
object |
{- "user": {
- "email": "operator@example.com",
- "password": "secret"
}
}
{- "session_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "org_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}