API For Share Code

List share code

get

Returns a list of share codes

Authorizations
api-keystringRequired
Query parameters
statusintegerOptional

Filter by share code status.

limitintegerOptional

Maximum number of items to return. Default: 30.

pageintegerOptional

Page data request. Default: 1

sort_bystringOptional

Field to sort by. Options: code, amount_ips, created_at. Default: created_at.

order_bystringOptional

Sort order: asc or desc. Default: desc.

keywordstringOptional

Search by keyword in the code field.

emailstringOptional

Filter share codes forwarded to a specific email. Example: [email protected].

Responses
chevron-right
200

Successful response

application/json
get
/client/v1/cd-keys/list-share-code

List of use codes

get

Returns a list of use codes

Authorizations
api-keystringRequired
Query parameters
statusintegerOptional

Filter by code status.

limitintegerOptional

Maximum number of items to return. Default: 30.

pageintegerOptional

Page data request. Default: 1

sort_bystringOptional

Field to sort by. Options: code, amount_ips, used_at. Default: used_at.

order_bystringOptional

Sort order. Options: asc, desc. Default: desc.

keywordstringOptional

Search by keyword in the code field.

emailstringOptional

Filter codes received by a specific email. Example: [email protected].

Responses
chevron-right
200

Successful response

application/json
get
/client/v1/cd-keys/list-use-code

Generate Share Code

post

Generates one or more share codes for distributing IPs.

Authorizations
api-keystringRequired
Body
planintegerRequired

Plan of data share. Currently only 1 = IP plan.

Example: 1
number_of_ipsintegerRequired

Number of IPs to allocate per code.

Example: 10
number_of_codesintegerRequired

Number of share codes to generate.

Example: 5
forward_tostringOptional

Email address of the recipient to forward the code to. Example: [email protected].

Example: [email protected]
Responses
chevron-right
200

Successful response

application/json
post
/client/v1/cd-keys/generate

Use code

post

Consumes one or more share codes to redeem IPs.

Authorizations
api-keystringRequired
Body
codesstring[]Required

Array of share codes to redeem.

Example: ["code_1","code_2","code_3"]
Responses
chevron-right
200

Successful response

application/json
post
/client/v1/cd-keys/use-code

Revoke share code

delete

Revokes one or more previously issued share codes.

Authorizations
api-keystringRequired
Body
codesstring[]Required

Array of share codes to revoke.

Example: ["code_1","code_2","code_3"]
Responses
chevron-right
200

Successful response

application/json
delete
/client/v1/cd-keys/revoke-code

Last updated

Was this helpful?